dir.c: squelch false uninitialized memory warning
GCC 4.4.4 on MacOS incorrectly warns about potential use of uninitialized memory. Signed-off-by: Pat Notz <patnotz@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Pat Notz committed
Sep 16, 2010 at 14:53 UTC
9d14017adafc4829efc9e1393653579ad1d8ed71
1 file changed
+1
-1
dir.c
+1
-1
@@ -232,7 +232,7 @@ int add_excludes_from_file_to_list(const char *fname,
232
{
233
struct stat st;
234
int fd, i;
235
- size_t size;
235
+ size_t size = 0;
236
char *buf, *entry;
237
238
fd = open(fname, O_RDONLY);