Code

Fix various dead stores found by the clang static analyzer
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 15 Mar 2009 21:01:20 +0000 (22:01 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 16 Mar 2009 01:25:24 +0000 (18:25 -0700)
commit8e24cbaeafc7eed709e251fda1673ffea84edfb1
treeb555dc4e224e336abac4469f80fce106ae898c29
parentde7697808fd8b552479a60fa3b98440d541b42de
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>
http-push.c
index-pack.c
merge-recursive.c
xdiff/xdiffi.c
xdiff/xemit.c