diff --git a/alsamixer/textbox.c b/alsamixer/textbox.c index 024aa73..7825c15 100644 --- a/alsamixer/textbox.c +++ b/alsamixer/textbox.c @@ -83,6 +83,7 @@ static char *read_file(const char *file_name, unsigned int *file_size) return NULL; } *file_size = 0; + buf = NULL; do { allocated *= 2; buf = crealloc(buf, allocated);