projects
/
profile
/
ivi
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7007fc
)
check for NULL before accessing the name
author
Lennart Poettering
<lennart@poettering.net>
Sun, 1 Feb 2009 23:19:26 +0000
(
00:19
+0100)
committer
Lennart Poettering
<lennart@poettering.net>
Sun, 1 Feb 2009 23:19:26 +0000
(
00:19
+0100)
src/pulsecore/namereg.c
patch
|
blob
|
history
diff --git
a/src/pulsecore/namereg.c
b/src/pulsecore/namereg.c
index
ac456ac
..
86bcef7
100644
(file)
--- 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)))