Revision: 69123
          http://sourceforge.net/p/brlcad/code/69123
Author:   starseeker
Date:     2016-10-18 22:09:42 +0000 (Tue, 18 Oct 2016)
Log Message:
-----------
Only do the bu_log if we have enough args.

Modified Paths:
--------------
    brlcad/trunk/src/libbu/tests/bu_booleanize.c

Modified: brlcad/trunk/src/libbu/tests/bu_booleanize.c
===================================================================
--- brlcad/trunk/src/libbu/tests/bu_booleanize.c        2016-10-18 22:00:58 UTC 
(rev 69122)
+++ brlcad/trunk/src/libbu/tests/bu_booleanize.c        2016-10-18 22:09:42 UTC 
(rev 69123)
@@ -31,14 +31,16 @@
     int expect_true = 0;
 
     const char *input = NULL;
-
-    bu_log("argc: %d, %s %s %s\n", argc, argv[0], argv[1], argv[2]);
-
-    if (argc > 3 || argc == 2) {
+       
+    if (argc > 3 || argc == 2 ) {
        fprintf(stderr, "Usage: %s [test_string expect_true]\n", argv[0]);
        return 1;
     }
 
+       if (argc == 3) {
+               bu_log("argc: %d, %s %s %s\n", argc, argv[0], argv[1], argv[2]);
+       }
+
     if (argc > 1) {
        input = argv[1];
     }

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