diff options
author | Pat Notz <patnotz@gmail.com> | 2010-09-16 22:53:22 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-09-27 20:43:12 +0200 |
commit | 9d14017adafc4829efc9e1393653579ad1d8ed71 (patch) | |
tree | e1bad32fbd9c5b51ee353ee53e24b5688cda782f /dir.c | |
parent | git-send-email.perl: ensure $domain is defined before using it (diff) | |
download | git-9d14017adafc4829efc9e1393653579ad1d8ed71.tar.xz git-9d14017adafc4829efc9e1393653579ad1d8ed71.zip |
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); |