20 Jul
2012
20 Jul
'12
2:59 p.m.
gcc gives a false alarm that "fp might be used uninitialized in this function".
Signed-off-by: David Henningsson david.henningsson@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