commit | 3d46224b7866089a62a992333681c9a81030bb0b | [log] [tgz] |
---|---|---|
author | Glenn L McGrath <bug1@ihug.co.nz> | Fri Jul 13 18:16:57 2001 +0000 |
committer | Glenn L McGrath <bug1@ihug.co.nz> | Fri Jul 13 18:16:57 2001 +0000 |
tree | b0a0a8643a63ff2ff60ab4ec5fd325d8adce835d | |
parent | cfeb08a1932f970f8cc8c7b73f86001389a343dd [diff] [blame] |
Return NULL if file doesnt open in deb_extract
diff --git a/libbb/unarchive.c b/libbb/unarchive.c index 852bd06..d10e60c 100644 --- a/libbb/unarchive.c +++ b/libbb/unarchive.c
@@ -568,7 +568,9 @@ /* open the debian package to be worked on */ deb_stream = wfopen(package_filename, "r"); - + if (deb_stream == NULL) { + return(NULL); + } /* set the buffer size */ setvbuf(deb_stream, NULL, _IOFBF, 0x8000);