From 7976ac3707a30c3da4396e7f5f032b0cb7609125 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 28 Apr 2010 23:13:33 +0200 Subject: [PATCH] xbps-repo/index.c: fix warnings found by clang. --HG-- extra : convert_revision : xtraeme%40gmail.com-20100428211333-wi7id42b9ol7g2ae --- bin/xbps-repo/index.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bin/xbps-repo/index.c b/bin/xbps-repo/index.c index 6bfa5e7d..069d7e9a 100644 --- a/bin/xbps-repo/index.c +++ b/bin/xbps-repo/index.c @@ -29,6 +29,7 @@ #include #include #include +#include #include #include @@ -93,9 +94,6 @@ xbps_repo_addpkg_index(prop_dictionary_t idxdict, const char *filedir, if (idxdict == NULL || file == NULL) return EINVAL; - pkgname = version = regver = oldfilen = NULL; - sha256 = filen = tmpfilen = tmpstr = oldfilepath = NULL; - tmpfilen = strdup(file); if (tmpfilen == NULL) return errno;