Revision: 76416
          http://sourceforge.net/p/brlcad/code/76416
Author:   starseeker
Date:     2020-07-22 14:36:16 +0000 (Wed, 22 Jul 2020)
Log Message:
-----------
heal command crashes if not given any args

Modified Paths:
--------------
    brlcad/branches/gedplugins/src/libged/heal/heal.c

Modified: brlcad/branches/gedplugins/src/libged/heal/heal.c
===================================================================
--- brlcad/branches/gedplugins/src/libged/heal/heal.c   2020-07-22 14:18:04 UTC 
(rev 76415)
+++ brlcad/branches/gedplugins/src/libged/heal/heal.c   2020-07-22 14:36:16 UTC 
(rev 76416)
@@ -54,6 +54,11 @@
     /* initialize result */
     bu_vls_trunc(gedp->ged_result_str, 0);
 
+    if(argc == 1) {
+       bu_vls_printf(gedp->ged_result_str, "Usage: %s <bot_solid>", argv[0]);
+       return GED_HELP;
+    }
+
     primitive = argv[1];
 
     if(argc > 2)

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