Return NULL if file doesnt open in deb_extract
This commit is contained in:
parent
cfeb08a193
commit
3d46224b78
@ -568,7 +568,9 @@ char *deb_extract(const char *package_filename, FILE *out_stream,
|
|||||||
|
|
||||||
/* open the debian package to be worked on */
|
/* open the debian package to be worked on */
|
||||||
deb_stream = wfopen(package_filename, "r");
|
deb_stream = wfopen(package_filename, "r");
|
||||||
|
if (deb_stream == NULL) {
|
||||||
|
return(NULL);
|
||||||
|
}
|
||||||
/* set the buffer size */
|
/* set the buffer size */
|
||||||
setvbuf(deb_stream, NULL, _IOFBF, 0x8000);
|
setvbuf(deb_stream, NULL, _IOFBF, 0x8000);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user