From 9b64e312866580de57687bef9d007ac9f2c9ce5a Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Sun, 17 Apr 2005 10:00:49 +0000 Subject: more sanity checks for pkg_load() --- lib/libalpm/package.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/libalpm/package.c b/lib/libalpm/package.c index 7e0854de..0d106893 100644 --- a/lib/libalpm/package.c +++ b/lib/libalpm/package.c @@ -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); } -- cgit v1.2.3-70-g09d2