From ea26fb3d3f9b6578345c978c8101698018b76144 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 30 Jan 2014 19:33:14 +0100 Subject: [PATCH] bin/xbps-rindex/sign.c: initialize var for strcmp(). --- bin/xbps-rindex/sign.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/xbps-rindex/sign.c b/bin/xbps-rindex/sign.c index d86613a3..e7f2dd2f 100644 --- a/bin/xbps-rindex/sign.c +++ b/bin/xbps-rindex/sign.c @@ -126,7 +126,7 @@ sign_repo(struct xbps_handle *xhp, const char *repodir, unsigned char *sig; unsigned int siglen; uint16_t rpubkeysize, pubkeysize; - const char *arch, *pkgver, *rsignedby; + const char *arch, *pkgver, *rsignedby = NULL; char *binpkg, *binpkg_sig, *buf, *defprivkey; int binpkg_fd, binpkg_sig_fd, rv = 0; bool flush = false;