summaryrefslogtreecommitdiff
path: root/alsamixer
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2009-05-27 14:16:30 +0200
committerTakashi Iwai <tiwai@suse.de>2009-05-27 14:16:30 +0200
commitb8f567461efe84fac9722eeea196ab1110a19be1 (patch)
tree7426e3885996bc7992e1dc1e5beacf735e98d5be /alsamixer
parentf974abdd2ecc51ddd2bd534a0e8919dfa4ba21e9 (diff)
alsamixer - Fix uninitialized variable warning
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'alsamixer')
-rw-r--r--alsamixer/textbox.c1
1 files changed, 1 insertions, 0 deletions
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);