From fe87bc1a885e1bb3aaacc6dead0456d59ef5a52d Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 7 Oct 2014 08:16:45 +0200 Subject: [PATCH] lib/util.c: CID 62710 (dead code) --- lib/util.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/util.c b/lib/util.c index 848d2e81..2cb22918 100644 --- a/lib/util.c +++ b/lib/util.c @@ -184,10 +184,7 @@ xbps_binpkg_arch(const char *pkg) fname = pkg; p = fname + strlen(pkgver); - if (!p || p == '\0') { - free(pkgver); - return NULL; - } + assert(p); if (*p == '.') p++;