aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2001-07-13 18:16:57 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2001-07-13 18:16:57 +0000
commit3d46224b7866089a62a992333681c9a81030bb0b (patch)
treeb0a0a8643a63ff2ff60ab4ec5fd325d8adce835d /libbb
parentcfeb08a1932f970f8cc8c7b73f86001389a343dd (diff)
downloadbusybox-w32-3d46224b7866089a62a992333681c9a81030bb0b.tar.gz
busybox-w32-3d46224b7866089a62a992333681c9a81030bb0b.tar.bz2
busybox-w32-3d46224b7866089a62a992333681c9a81030bb0b.zip
Return NULL if file doesnt open in deb_extract
Diffstat (limited to 'libbb')
-rw-r--r--libbb/unarchive.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libbb/unarchive.c b/libbb/unarchive.c
index 852bd06a8..d10e60cbb 100644
--- a/libbb/unarchive.c
+++ b/libbb/unarchive.c
@@ -568,7 +568,9 @@ char *deb_extract(const char *package_filename, FILE *out_stream,
568 568
569 /* open the debian package to be worked on */ 569 /* open the debian package to be worked on */
570 deb_stream = wfopen(package_filename, "r"); 570 deb_stream = wfopen(package_filename, "r");
571 571 if (deb_stream == NULL) {
572 return(NULL);
573 }
572 /* set the buffer size */ 574 /* set the buffer size */
573 setvbuf(deb_stream, NULL, _IOFBF, 0x8000); 575 setvbuf(deb_stream, NULL, _IOFBF, 0x8000);
574 576