diff options
author | Pat Notz <patnotz@gmail.com> | 2010-09-16 14:53:22 -0600 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-09-27 11:43:12 -0700 |
commit | 9d14017adafc4829efc9e1393653579ad1d8ed71 (patch) | |
tree | e1bad32fbd9c5b51ee353ee53e24b5688cda782f /dir.c | |
parent | 61ef5e9b56e1c16f6d3c142e2c63f6e2c720c64e (diff) | |
download | git-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |