aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2015-08-08 19:21:42 -0500
committerRob Landley <rob@landley.net>2015-08-08 19:21:42 -0500
commit11d2ff5ffac9382be0d6971b8ac84df21eca85df (patch)
tree3d145fc0f545138ebb1bb299bd88dabfe50dc8a3 /lib
parent3501e103b3b1f9d79f733976e338d59478d2e6f6 (diff)
downloadtoybox-11d2ff5ffac9382be0d6971b8ac84df21eca85df.tar.gz
First pass at proper bunzip2 command line handling.
Diffstat (limited to 'lib')
-rw-r--r--lib/lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lib.c b/lib/lib.c
index 81c989ab..4b87f8cf 100644
--- a/lib/lib.c
+++ b/lib/lib.c
@@ -575,7 +575,7 @@ void delete_tempfile(int fdin, int fdout, char **tempname)
{
close(fdin);
close(fdout);
- unlink(*tempname);
+ if (*tempname) unlink(*tempname);
tempfile2zap = (char *)1;
free(*tempname);
*tempname = NULL;