Revision: 68979
http://sourceforge.net/p/brlcad/code/68979
Author: brlcad
Date: 2016-10-04 12:41:19 +0000 (Tue, 04 Oct 2016)
Log Message:
-----------
make bu_badmagic actually not return, always
Modified Paths:
--------------
brlcad/trunk/src/libbu/badmagic.c
Modified: brlcad/trunk/src/libbu/badmagic.c
===================================================================
--- brlcad/trunk/src/libbu/badmagic.c 2016-10-04 12:12:16 UTC (rev 68978)
+++ brlcad/trunk/src/libbu/badmagic.c 2016-10-04 12:41:19 UTC (rev 68979)
@@ -44,9 +44,11 @@
str, (unsigned long)magic,
bu_identify_magic(*(ptr)), (unsigned long)*(ptr),
file, line);
+ } else {
+ snprintf(buf, MAGICBUFSIZ, "ERROR: bad %d pointer %p @ file %s:%d\n",
str, (void *)ptr, file, line);
}
- if (UNLIKELY(buf[0] != '\0'))
- bu_bomb(buf);
+
+ bu_bomb(buf);
}
/*
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits