[alsa-devel] [PATCH 2/3] hda-emu: Silence warning
David Henningsson
david.henningsson at canonical.com
Fri Jul 20 14:59:51 CEST 2012
gcc gives a false alarm that "fp might be used uninitialized in this
function".
Signed-off-by: David Henningsson <david.henningsson at canonical.com>
---
hda-emu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hda-emu.c b/hda-emu.c
index 8bf1c81..77d5a7f 100644
--- a/hda-emu.c
+++ b/hda-emu.c
@@ -290,7 +290,7 @@ void hda_log_dump_proc(unsigned int nid, const char *file)
card.proc->func(card.proc, &buf);
hda_log_level_set(saved_level);
if (file)
- fclose(fp);
+ fclose(buf.fp);
}
/*
--
1.7.9.5
More information about the Alsa-devel
mailing list