xbps-repo/index.c: fix warnings found by clang.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20100428211333-wi7id42b9ol7g2ae
This commit is contained in:
Juan RP 2010-04-28 23:13:33 +02:00
parent b04a0230cd
commit 7976ac3707

View File

@ -29,6 +29,7 @@
#include <string.h>
#include <errno.h>
#include <dirent.h>
#include <libgen.h>
#include <sys/utsname.h>
#include <sys/stat.h>
@ -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;