[pulseaudio-commits] r1147 - /trunk/src/pulsecore/tagstruct.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Tue Jul 25 13:10:48 PDT 2006


Author: lennart
Date: Tue Jul 25 22:10:47 2006
New Revision: 1147

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1147&root=pulseaudio&view=rev
Log:
split a few asserts

Modified:
    trunk/src/pulsecore/tagstruct.c

Modified: trunk/src/pulsecore/tagstruct.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/tagstruct.c?rev=1147&root=pulseaudio&r1=1146&r2=1147&view=diff
==============================================================================
--- trunk/src/pulsecore/tagstruct.c (original)
+++ trunk/src/pulsecore/tagstruct.c Tue Jul 25 22:10:47 2006
@@ -79,14 +79,14 @@
 }
 
 static void extend(pa_tagstruct*t, size_t l) {
-    assert(t && t->dynamic);
+    assert(t);
+    assert(t->dynamic);
 
     if (t->length+l <= t->allocated)
         return;
 
     t->data = pa_xrealloc(t->data, t->allocated = t->length+l+100);
 }
-
 
 void pa_tagstruct_puts(pa_tagstruct*t, const char *s) {
     size_t l;




More information about the pulseaudio-commits mailing list