fix possibly garbage value returned in cert_process_revoker
[project/ucert.git] / ucert.c
diff --git a/ucert.c b/ucert.c
index 8503eeb..b9c5c88 100644 (file)
--- a/ucert.c
+++ b/ucert.c
@@ -508,7 +508,7 @@ static int cert_process_revoker(const char *certfile, const char *pubkeydir) {
        char *fingerprint;
        char rfname[512];
 
-       int ret;
+       int ret = -1;
 
        if (cert_load(certfile, &certchain)) {
                DPRINTF("cannot parse cert\n");