Revision: 45575
          http://brlcad.svn.sourceforge.net/brlcad/?rev=45575&view=rev
Author:   bhinesley
Date:     2011-07-22 17:40:47 +0000 (Fri, 22 Jul 2011)

Log Message:
-----------
initialize variable to default before switch, rather than setting in every case

Modified Paths:
--------------
    brlcad/trunk/src/libged/edit.c

Modified: brlcad/trunk/src/libged/edit.c
===================================================================
--- brlcad/trunk/src/libged/edit.c      2011-07-22 13:41:17 UTC (rev 45574)
+++ brlcad/trunk/src/libged/edit.c      2011-07-22 17:40:47 UTC (rev 45575)
@@ -1131,7 +1131,6 @@
            return GED_ERROR;
        }
 
-
        /* detect >1 inner slashes */
        first_slash = (char *)memchr((void *)path_start, '/',
                                     (size_t)(path_end - path_start + 1));
@@ -1251,7 +1250,7 @@
     union edit_cmd subcmd;
     struct edit_arg *cur_arg = &subcmd.cmd_line.args;
     int idx_cur_opt = 0; /* pos in options array for current arg */
-    int conv_flags = 0; /* for edit_strs_to_arg */
+    int conv_flags; /* for edit_strs_to_arg */
     static const char * const usage = "[subcommand] [args]";
     int i; /* iterator */
     int c; /* for bu_getopt */
@@ -1459,6 +1458,7 @@
            /* last element is an option */
            goto err_missing_operand;
 
+       conv_flags = GED_ERROR;
        switch (c) {
            case 'x': /* singular coord specif. sub-opts */
            case 'y':
@@ -1474,14 +1474,10 @@
                    edit_cmd_free(&subcmd);
                    return GED_ERROR;
                }
-
-
-               conv_flags = GED_ERROR;
                break;
            case 'k': /* standard arg specification options */
            case 'a':
            case 'r':
-               conv_flags = GED_ERROR;
                if (!bu_optarg)
                    goto err_missing_arg;
                if ((strlen(bu_optarg) > 1) && (bu_optarg[0] == '-')) {


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

------------------------------------------------------------------------------
10 Tips for Better Web Security
Learn 10 ways to better secure your business today. Topics covered include:
Web security, SSL, hacker attacks & Denial of Service (DoS), private keys,
security Microsoft Exchange, secure Instant Messaging, and much more.
http://www.accelacomm.com/jaw/sfnl/114/51426210/
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to