Revision: 55202
          http://brlcad.svn.sourceforge.net/brlcad/?rev=55202&view=rev
Author:   r_weiss
Date:     2013-04-22 14:34:30 +0000 (Mon, 22 Apr 2013)
Log Message:
-----------
Bug fix in mged 'red' command to fix a double 'fclose'.

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

Modified: brlcad/trunk/src/libged/red.c
===================================================================
--- brlcad/trunk/src/libged/red.c       2013-04-22 14:09:08 UTC (rev 55201)
+++ brlcad/trunk/src/libged/red.c       2013-04-22 14:34:30 UTC (rev 55202)
@@ -843,15 +843,9 @@
     /* Write the combination components to the file */
     if (write_comb(gedp, comb, argv[1])) {
        bu_vls_printf(gedp->ged_result_str, "Unable to edit %s\n", argv[1]);
-       (void)fclose(fp);
        goto cleanup;
     }
 
-    /* Close the temp file so it will be written to disk. The temp file now
-     * contains the data for the combination which is to then be edited.
-     */
-    (void)fclose(fp);
-
     /* Edit the file */
     if (_ged_editit(editstring, _ged_tmpfil)) {
 

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