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;