X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=src%2Fwarc.c;h=de99bf7cbf9a76e2e0df5cfb70a216897e3cc8ae;hb=b1838bdfd197ec970d834ce5042995df92516841;hp=69f80bebc62889edbf60c03bf60cddc2d6df50d5;hpb=321b5dce853e856df342cc8bddea0dab1f7193b2;p=wget diff --git a/src/warc.c b/src/warc.c index 69f80beb..de99bf7c 100644 --- a/src/warc.c +++ b/src/warc.c @@ -1005,12 +1005,10 @@ warc_find_duplicate_cdx_record (char *url, char *sha1_digest_payload) if (warc_cdx_dedup_table == NULL) return NULL; - char *key; - struct warc_cdx_record *rec_existing; - int found = hash_table_get_pair (warc_cdx_dedup_table, sha1_digest_payload, - &key, &rec_existing); + struct warc_cdx_record *rec_existing + = hash_table_get (warc_cdx_dedup_table, sha1_digest_payload); - if (found && strcmp (rec_existing->url, url) == 0) + if (rec_existing && strcmp (rec_existing->url, url) == 0) return rec_existing; else return NULL;