From: Pat Notz Date: Thu, 16 Sep 2010 20:53:22 +0000 (-0600) Subject: dir.c: squelch false uninitialized memory warning X-Git-Tag: v1.7.3.1~4 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9d14017adafc4829efc9e1393653579ad1d8ed71;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/dir.c b/dir.c index 133f472a1..d1e5e5e5b 100644 --- a/dir.c +++ b/dir.c @@ -232,7 +232,7 @@ int add_excludes_from_file_to_list(const char *fname, { struct stat st; int fd, i; - size_t size; + size_t size = 0; char *buf, *entry; fd = open(fname, O_RDONLY);