Code

Fix some "variable might be used uninitialized" warnings
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>
Sun, 11 Sep 2011 19:39:32 +0000 (20:39 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 9 Oct 2011 20:28:04 +0000 (13:28 -0700)
commit27c0f768843b6d844674f1fb8dc2676d830b56e3
tree8f5e9fba34ffd5c042aee1b30118869feff13650
parent16f5bfcf65b46260f3a4fc66769e8b5cfd18a11a
Fix some "variable might be used uninitialized" warnings

In particular, gcc complains as follows:

        CC tree-walk.o
    tree-walk.c: In function `traverse_trees':
    tree-walk.c:347: warning: 'e' might be used uninitialized in this \
        function

        CC builtin/revert.o
    builtin/revert.c: In function `verify_opt_mutually_compatible':
    builtin/revert.c:113: warning: 'opt2' might be used uninitialized in \
        this function

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/revert.c
tree-walk.c