]> granicus.if.org Git - transmission/commitdiff
in bencode.c's makeroom(), clarify the entry assertions
authorJordan Lee <jordan@transmissionbt.com>
Sun, 9 Dec 2012 21:45:30 +0000 (21:45 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Sun, 9 Dec 2012 21:45:30 +0000 (21:45 +0000)
libtransmission/bencode.c

index 9e9f5bdfad7154282977906826b18ee4b4b56270..2a569dd54c75197a9d24230826a9df5f730eb45d 100644 (file)
@@ -165,7 +165,7 @@ static int
 makeroom (tr_benc * val,
           size_t    count)
 {
-    assert (TR_TYPE_LIST == val->type || TR_TYPE_DICT == val->type);
+    assert (isContainer (val));
 
     if (val->val.l.count + count > val->val.l.alloc)
     {