[polypaudio-commits] r791 - /trunk/src/polypcore/core-scache.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Sun Apr 23 14:25:28 PDT 2006


Author: lennart
Date: Sun Apr 23 23:25:27 2006
New Revision: 791

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=791&root=polypaudio&view=rev
Log:
fix a segfault when uploading samples with esound

Modified:
    trunk/src/polypcore/core-scache.c

Modified: trunk/src/polypcore/core-scache.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polypcore/core-scache.c?rev=791&root=polypaudio&r1=790&r2=791&view=diff
==============================================================================
--- trunk/src/polypcore/core-scache.c (original)
+++ trunk/src/polypcore/core-scache.c Sun Apr 23 23:25:27 2006
@@ -133,7 +133,7 @@
     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)))




More information about the pulseaudio-commits mailing list