diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2009-03-15 22:01:20 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-03-15 18:25:24 -0700 |
commit | 8e24cbaeafc7eed709e251fda1673ffea84edfb1 (patch) | |
tree | b555dc4e224e336abac4469f80fce106ae898c29 /http-push.c | |
parent | de7697808fd8b552479a60fa3b98440d541b42de (diff) | |
download | git-8e24cbaeafc7eed709e251fda1673ffea84edfb1.tar.gz |
Fix various dead stores found by the clang static analyzer
http-push.c::finish_request():
request is initialized by the for loop
index-pack.c::free_base_data():
b is initialized by the for loop
merge-recursive.c::process_renames():
move compare to narrower scope, and remove unused assignments to it
remove unused variable renames2
xdiff/xdiffi.c::xdl_recs_cmp():
remove unused variable ec
xdiff/xemit.c::xdl_emit_diff():
xche is always overwritten
Signed-off-by: Benjamin Kramer <benny.kra@googlemail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'http-push.c')
-rw-r--r-- | http-push.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/http-push.c b/http-push.c index 30d2d34041..671569594e 100644 --- a/http-push.c +++ b/http-push.c @@ -816,7 +816,7 @@ static void finish_request(struct transfer_request *request) #ifdef USE_CURL_MULTI static int fill_active_slot(void *unused) { - struct transfer_request *request = request_queue_head; + struct transfer_request *request; if (aborted) return 0; |