Revision: 76917
http://sourceforge.net/p/brlcad/code/76917
Author: brlcad
Date: 2020-08-24 13:40:30 +0000 (Mon, 24 Aug 2020)
Log Message:
-----------
checking null is unnecessary/redundant with BU_STR_EQUIV() as it handles them
(they're equivalent to an empty string) so there's no risk of crashing.
Modified Paths:
--------------
brlcad/trunk/src/libdm/dm_plugins.cpp
Modified: brlcad/trunk/src/libdm/dm_plugins.cpp
===================================================================
--- brlcad/trunk/src/libdm/dm_plugins.cpp 2020-08-24 13:39:45 UTC (rev
76916)
+++ brlcad/trunk/src/libdm/dm_plugins.cpp 2020-08-24 13:40:30 UTC (rev
76917)
@@ -88,7 +88,7 @@
std::string key = d_it->first;
const struct dm *d = d_it->second;
const char *dname = dm_get_dm_name(d);
- if (dname && BU_STR_EQUIV(dmtype, dname)) {
+ if (BU_STR_EQUIV(dmtype, dname)) {
ret = dm_get_graphics_system(d);
break;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits