Revision: 76157
          http://sourceforge.net/p/brlcad/code/76157
Author:   starseeker
Date:     2020-06-18 17:47:13 +0000 (Thu, 18 Jun 2020)
Log Message:
-----------
fix bu_cmd_valid check

Modified Paths:
--------------
    brlcad/trunk/src/burst/burst.cpp

Modified: brlcad/trunk/src/burst/burst.cpp
===================================================================
--- brlcad/trunk/src/burst/burst.cpp    2020-06-18 17:18:18 UTC (rev 76156)
+++ brlcad/trunk/src/burst/burst.cpp    2020-06-18 17:47:13 UTC (rev 76157)
@@ -1749,7 +1749,7 @@
     char **av = (char **)bu_calloc(strlen(input) + 1, sizeof(char *), "argv 
array");
     int ac = bu_argv_from_string(av, strlen(input), input);
 
-    if (!ac || !bu_cmd_valid(_burst_cmds, av[0]) == BRLCAD_OK) {
+    if (!ac || bu_cmd_valid(_burst_cmds, av[0]) != BRLCAD_OK) {
        brst_log(s, MSG_OUT, "unrecognzied command: %s\n", av[0]);
        ret = BRLCAD_ERROR;
        goto line_done;

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to