]> the.earth.li Git - onak.git/blobdiff - keydb_hkp.c
Fix issues found by llvm scan-build static analysis
[onak.git] / keydb_hkp.c
index 7c7b31a4a50e75bc7acc290bb6333e81c8c07cf7..8bb8c02bd2e3a5b5ccc504ecd36d856ad12899bb 100644 (file)
@@ -52,7 +52,7 @@ static int hkp_parse_url(struct onak_hkp_dbctx *privctx, const char *url)
                        &port);
        if (matched < 2) {
                proto[0] = 0;
-               matched = sscanf(url, "%256[a-zA-Z0-9.]:%u", host, &port);
+               sscanf(url, "%256[a-zA-Z0-9.]:%u", host, &port);
        }
 
        if (host[0] == 0) {