alsamixer - Fix uninitialized variable warning

Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Takashi Iwai 2009-05-27 14:16:30 +02:00
parent f974abdd2e
commit b8f567461e

View file

@ -83,6 +83,7 @@ static char *read_file(const char *file_name, unsigned int *file_size)
return NULL; return NULL;
} }
*file_size = 0; *file_size = 0;
buf = NULL;
do { do {
allocated *= 2; allocated *= 2;
buf = crealloc(buf, allocated); buf = crealloc(buf, allocated);