Replace one assert() with DISSECTOR_ASSET(), so we don't crash, and get
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 30 Jun 2009 23:56:26 +0000 (23:56 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 30 Jun 2009 23:56:26 +0000 (23:56 +0000)
rid of another, as the pointer in question is non-null in all calls (if
somebody adds another call with a null pointer, it'll crash when
dereferencing the pointer in any case).

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28900 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-pw-atm.c

index bec5e8196663cf6857c5b33c0cc69274ef637a0e..17316e11085285b66642699e8781e6e4546eb6b7 100644 (file)
@@ -250,8 +250,8 @@ int number_of_cells(const pwatm_mode_t mode
                ,gint* const remainder_size)
 {
        int cells;      
-       assert(payload_size >= 0);
-       assert(remainder_size != NULL);
+
+       DISSECTOR_ASSERT(payload_size >= 0);
        
        switch(mode)
        {