Browse Source

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>
maint
Pat Notz 15 years ago committed by Junio C Hamano
parent
commit
9d14017ada
  1. 2
      dir.c

2
dir.c

@ -232,7 +232,7 @@ int add_excludes_from_file_to_list(const char *fname,
{ {
struct stat st; struct stat st;
int fd, i; int fd, i;
size_t size; size_t size = 0;
char *buf, *entry; char *buf, *entry;


fd = open(fname, O_RDONLY); fd = open(fname, O_RDONLY);

Loading…
Cancel
Save