[PATCH] Fix alloc_filespec() initialization
authorLinus Torvalds <torvalds@osdl.org>
Wed, 14 Sep 2005 20:41:24 +0000 (13:41 -0700)
committerJunio C Hamano <junkio@cox.net>
Wed, 14 Sep 2005 20:57:34 +0000 (13:57 -0700)
commit705a7148ba1bb9597b1837b7f64a0dcb67f1ad0c
treecd8f4b0ba024c434e5e76ef7168f9c4342247bd5
parentc80522e30fdc190f8c8c7fc983bbe040a1b03e93
[PATCH] Fix alloc_filespec() initialization

This simplifies and fixes the initialization of a "diff_filespec" when
allocated.

The old code would not initialize "sha1_valid". Noticed by valgrind.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
diff.c