Revision: 76296
          http://sourceforge.net/p/brlcad/code/76296
Author:   brlcad
Date:     2020-07-10 04:10:15 +0000 (Fri, 10 Jul 2020)
Log Message:
-----------
don't allow put_comb to attempt to read/write empty combination names.  this is 
trivially achieved via the combination panel gui in mged, just hit Apply.

Modified Paths:
--------------
    brlcad/trunk/src/libged/put_comb.c

Modified: brlcad/trunk/src/libged/put_comb.c
===================================================================
--- brlcad/trunk/src/libged/put_comb.c  2020-07-10 04:08:52 UTC (rev 76295)
+++ brlcad/trunk/src/libged/put_comb.c  2020-07-10 04:10:15 UTC (rev 76296)
@@ -509,6 +509,12 @@
        return GED_ERROR;
     }
 
+    /* do not attempt to read/write empty-named combinations */
+    if (BU_STR_EMPTY(comb_name)) {
+       bu_vls_printf(gedp->ged_result_str, "%s: an empty combination name is 
not valid\n", cmd_name);
+       return GED_ERROR;
+    }
+
     comb = (struct rt_comb_internal *)NULL;
     dp = db_lookup(gedp->ged_wdbp->dbip, comb_name, LOOKUP_QUIET);
     if (dp != RT_DIR_NULL) {

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

Reply via email to