Revision: 65110
          http://sourceforge.net/p/brlcad/code/65110
Author:   ejno
Date:     2015-05-30 01:09:53 +0000 (Sat, 30 May 2015)
Log Message:
-----------
fix warning: rn is used uninitialized whenever condition is false

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

Modified: brlcad/trunk/src/libbu/tests/opt.c
===================================================================
--- brlcad/trunk/src/libbu/tests/opt.c  2015-05-30 00:22:28 UTC (rev 65109)
+++ brlcad/trunk/src/libbu/tests/opt.c  2015-05-30 01:09:53 UTC (rev 65110)
@@ -63,7 +63,7 @@
     if (!bu_str_to_rgb((char *)BU_PTBL_GET(data->args, 0), (unsigned char 
*)&rgb)) {
        /* nope - maybe we have 3 args? */
        if (BU_PTBL_LEN(data->args) == 3) {
-           int rn, gn, bn = 0;
+           int rn = 0, gn = 0, bn = 0;
            if (isnum((const char *)BU_PTBL_GET(data->args, 0)))
                rn = sscanf((const char *)BU_PTBL_GET(data->args, 0), "%02x", 
&rgb[0]);
            if (isnum((const char *)BU_PTBL_GET(data->args, 1)))

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