Return NULL if file doesnt open in deb_extract

This commit is contained in:
Glenn L McGrath 2001-07-13 18:16:57 +00:00
parent cfeb08a193
commit 3d46224b78

View File

@ -568,7 +568,9 @@ char *deb_extract(const char *package_filename, FILE *out_stream,
/* 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);