Skip to content

Commit

Permalink
dir.c: squelch false uninitialized memory warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pat Notz authored and Junio C Hamano committed Sep 27, 2010
1 parent 61ef5e9 commit 9d14017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9d14017

Please sign in to comment.