summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authorPat Notz <patnotz@gmail.com>2010-09-16 14:53:22 -0600
committerJunio C Hamano <gitster@pobox.com>2010-09-27 11:43:12 -0700
commit9d14017adafc4829efc9e1393653579ad1d8ed71 (patch)
treee1bad32fbd9c5b51ee353ee53e24b5688cda782f /dir.c
parent61ef5e9b56e1c16f6d3c142e2c63f6e2c720c64e (diff)
downloadgit-9d14017adafc4829efc9e1393653579ad1d8ed71.tar.gz
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>
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dir.c b/dir.c
index 133f472a1e..d1e5e5e5bf 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);