mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
fix a segfault when uploading samples with esound
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@791 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
3590ee7581
commit
b92344f3ec
1 changed files with 1 additions and 1 deletions
|
|
@ -133,7 +133,7 @@ int pa_scache_add_item(pa_core *c, const char *name, const pa_sample_spec *ss, c
|
|||
pa_scache_entry *e;
|
||||
assert(c && name);
|
||||
|
||||
if (chunk->length > PA_SCACHE_ENTRY_SIZE_MAX)
|
||||
if (chunk && chunk->length > PA_SCACHE_ENTRY_SIZE_MAX)
|
||||
return -1;
|
||||
|
||||
if (!(e = scache_add_item(c, name)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue