From a77a3353704dbd9b833ca55a463468d4b2dbaefd Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Mon, 20 Mar 2017 21:57:57 +0100 Subject: [PATCH] Comment out dead assignement To silence static code analysis --- src/mdns.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mdns.c b/src/mdns.c index 6373b265..8a63f013 100644 --- a/src/mdns.c +++ b/src/mdns.c @@ -788,7 +788,9 @@ mdns_update_cache_ttl_and_prune(struct getdns_context *context, memmove(old_record + last_copied_index, old_record + current_hole_index, answer_index - current_hole_index); last_copied_index += answer_index - current_hole_index; - answer_index = last_copied_index; + + /* dead assignment */ + /* answer_index = last_copied_index; */ } /* if some records were deleted, update the record headers */