From: Lennart Poettering Date: Sun, 1 Feb 2009 23:19:26 +0000 (+0100) Subject: check for NULL before accessing the name X-Git-Tag: 1.0_branch~2240 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=55f643d49ea708b2c95a65aedb93dcc38eb9ec4e;p=profile%2Fivi%2Fpulseaudio.git check for NULL before accessing the name --- diff --git a/src/pulsecore/namereg.c b/src/pulsecore/namereg.c index ac456ac..86bcef7 100644 --- a/src/pulsecore/namereg.c +++ b/src/pulsecore/namereg.c @@ -194,7 +194,7 @@ void* pa_namereg_get(pa_core *c, const char *name, pa_namereg_type_t type) { } - if (*name == '@' || !name || !pa_namereg_is_valid_name(name)) + if (!name || *name == '@' || !pa_namereg_is_valid_name(name)) return NULL; if ((e = pa_hashmap_get(c->namereg, name)))