Revision: 70820
          http://sourceforge.net/p/brlcad/code/70820
Author:   brlcad
Date:     2018-03-14 00:52:13 +0000 (Wed, 14 Mar 2018)
Log Message:
-----------
remove silly first-char optimization

Modified Paths:
--------------
    brlcad/trunk/src/libbu/cmd.c

Modified: brlcad/trunk/src/libbu/cmd.c
===================================================================
--- brlcad/trunk/src/libbu/cmd.c        2018-03-13 14:50:50 UTC (rev 70819)
+++ brlcad/trunk/src/libbu/cmd.c        2018-03-14 00:52:13 UTC (rev 70820)
@@ -38,9 +38,7 @@
     }
 
     for (ctp = cmds; ctp->ct_name != (char *)NULL; ctp++) {
-       if (ctp->ct_name[0] == argv[cmd_index][0]
-           && BU_STR_EQUAL(ctp->ct_name, argv[cmd_index]))
-       {
+       if (BU_STR_EQUAL(ctp->ct_name, argv[cmd_index])) {
            if (retval) {
                *retval = (*ctp->ct_func)(data, argc, argv);
            } else {

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
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to