Revision: 54547
http://brlcad.svn.sourceforge.net/brlcad/?rev=54547&view=rev
Author: brlcad
Date: 2013-03-07 00:54:49 +0000 (Thu, 07 Mar 2013)
Log Message:
-----------
call bu_calloc() instead of BU_GET() since the caller doesn't know.
Modified Paths:
--------------
brlcad/trunk/include/solid.h
Modified: brlcad/trunk/include/solid.h
===================================================================
--- brlcad/trunk/include/solid.h 2013-03-06 22:37:32 UTC (rev 54546)
+++ brlcad/trunk/include/solid.h 2013-03-07 00:54:49 UTC (rev 54547)
@@ -71,7 +71,7 @@
#define GET_SOLID(p, fp) { \
if (BU_LIST_IS_EMPTY(fp)) { \
- BU_GET(p, struct solid); \
+ (p) = (struct solid *)bu_calloc(1, sizeof(struct solid), "get
solid"); \
db_full_path_init(&(p)->s_fullpath); \
} else { \
p = BU_LIST_NEXT(solid, fp); \
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