Skip to content

Commit 9d14017

Browse files
patnotzgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 61ef5e9 commit 9d14017

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ int add_excludes_from_file_to_list(const char *fname,
232232
{
233233
struct stat st;
234234
int fd, i;
235-
size_t size;
235+
size_t size = 0;
236236
char *buf, *entry;
237237

238238
fd = open(fname, O_RDONLY);

0 commit comments

Comments
 (0)