Revision: 54574
          http://brlcad.svn.sourceforge.net/brlcad/?rev=54574&view=rev
Author:   brlcad
Date:     2013-03-08 17:03:43 +0000 (Fri, 08 Mar 2013)
Log Message:
-----------
gah, need to wrap the multi-statement form of BU_PUT in curlies or unwrapped 
if(null) tests will still run the free

Modified Paths:
--------------
    brlcad/trunk/include/bu.h

Modified: brlcad/trunk/include/bu.h
===================================================================
--- brlcad/trunk/include/bu.h   2013-03-08 16:16:33 UTC (rev 54573)
+++ brlcad/trunk/include/bu.h   2013-03-08 17:03:43 UTC (rev 54574)
@@ -264,7 +264,7 @@
 #if 0
 #define BU_PUT(_ptr, _type) *(uint8_t *)(_ptr) = /*zap*/ 0; bu_heap_put(_ptr, 
sizeof(_type)); _ptr = NULL
 #else
-#define BU_PUT(_ptr, _type) *(uint8_t *)(_ptr) = /*zap*/ 0; bu_free(_ptr, 
#_type " (BU_PUT) " BU_FLSTR); _ptr = NULL
+#define BU_PUT(_ptr, _type) { *(uint8_t *)(_ptr) = /*zap*/ 0; bu_free(_ptr, 
#_type " (BU_PUT) " BU_FLSTR); _ptr = NULL; }
 #endif
 
 /**

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to