command_get_info() segv in some conditions

Signed-off-by: Lennart Poettering <lennart@poettering.net>
This commit is contained in:
Marc-André Lureau 2008-09-01 16:00:08 +03:00 committed by Lennart Poettering
parent c402de7545
commit 79009d2235

View file

@ -2791,7 +2791,7 @@ static void command_get_info(pa_pdispatch *pd, uint32_t command, uint32_t tag, p
pa_sink_input *si = NULL; pa_sink_input *si = NULL;
pa_source_output *so = NULL; pa_source_output *so = NULL;
pa_scache_entry *sce = NULL; pa_scache_entry *sce = NULL;
const char *name; const char *name = NULL;
pa_tagstruct *reply; pa_tagstruct *reply;
pa_native_connection_assert_ref(c); pa_native_connection_assert_ref(c);