more sanity checks for pkg_load()
This commit is contained in:
parent
0c0a50caf5
commit
9b64e31286
1 changed files with 1 additions and 1 deletions
|
@ -193,7 +193,7 @@ pmpkg_t *pkg_load(char *pkgfile)
|
|||
(writefunc_t)gzwrite
|
||||
};
|
||||
|
||||
if(pkgfile == NULL) {
|
||||
if(pkgfile == NULL || strlen(pkgfile) == 0) {
|
||||
RET_ERR(PM_ERR_WRONG_ARGS, NULL);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue