summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2006-04-23 21:25:27 +0000
committerLennart Poettering <lennart@poettering.net>2006-04-23 21:25:27 +0000
commitb92344f3ec2e678c497397074cc1693e9098c0f1 (patch)
treeee39481c37e12636019a031f08d326795fc68b3c
parent3590ee7581df02152cb2924509752565cd1e3dea (diff)
fix a segfault when uploading samples with esound
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@791 fefdeb5f-60dc-0310-8127-8f9354f1896f
-rw-r--r--src/polypcore/core-scache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/polypcore/core-scache.c b/src/polypcore/core-scache.c
index 2e8d453c..82c61a1d 100644
--- a/src/polypcore/core-scache.c
+++ b/src/polypcore/core-scache.c
@@ -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)))