Revision: 55181
          http://brlcad.svn.sourceforge.net/brlcad/?rev=55181&view=rev
Author:   carlmoore
Date:     2013-04-18 19:28:47 +0000 (Thu, 18 Apr 2013)
Log Message:
-----------
shift in_cookie , out_cookie to later (after file issues are checked out), and 
use argc == 5 because argc >5 was already elminated by earlier code

Modified Paths:
--------------
    brlcad/trunk/src/util/cv.c

Modified: brlcad/trunk/src/util/cv.c
===================================================================
--- brlcad/trunk/src/util/cv.c  2013-04-18 15:32:35 UTC (rev 55180)
+++ brlcad/trunk/src/util/cv.c  2013-04-18 19:28:47 UTC (rev 55181)
@@ -84,10 +84,7 @@
        return 1;
     }
 
-    in_cookie = bu_cv_cookie(in_pat);
-    out_cookie = bu_cv_cookie(out_pat);
-
-    if (argc >= 5) {
+    if (argc == 5) {
        if ((outfp = fopen(argv[4], "w")) == NULL) {
            perror(argv[4]);
            return 2;
@@ -110,6 +107,8 @@
        return 5;
     }
 
+    in_cookie = bu_cv_cookie(in_pat);
+    out_cookie = bu_cv_cookie(out_pat);
     iitem = bu_cv_itemlen(in_cookie);
     oitem = bu_cv_itemlen(out_cookie);
 #define NITEMS (64*1024)

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


------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to