Revision: 7237
          http://playerstage.svn.sourceforge.net/playerstage/?rev=7237&view=rev
Author:   thjc
Date:     2009-01-04 02:10:05 +0000 (Sun, 04 Jan 2009)

Log Message:
-----------
fix for close of null file pointer

Modified Paths:
--------------
    code/stage/branches/release-2-1-patches/src/model_bumper.c
    code/stage/branches/release-2-1-patches/src/stage.c

Modified: code/stage/branches/release-2-1-patches/src/model_bumper.c
===================================================================
--- code/stage/branches/release-2-1-patches/src/model_bumper.c  2009-01-04 
01:57:44 UTC (rev 7236)
+++ code/stage/branches/release-2-1-patches/src/model_bumper.c  2009-01-04 
02:10:05 UTC (rev 7237)
@@ -303,8 +303,8 @@
     }
   else
     if( dlen > 0 )
-      PRINT_WARN2( "data size doesn't match configuation (%ld/%ld bytes)",
-                  (int)dlen,  (int)(rcount * sizeof(stg_bumper_sample_t) ));
+      PRINT_WARN2( "data size doesn't match configuration (%ld/%ld bytes)",
+                  dlen,  (rcount * sizeof(stg_bumper_sample_t) ));
 
   return 0; // keep running
 }

Modified: code/stage/branches/release-2-1-patches/src/stage.c
===================================================================
--- code/stage/branches/release-2-1-patches/src/stage.c 2009-01-04 01:57:44 UTC 
(rev 7236)
+++ code/stage/branches/release-2-1-patches/src/stage.c 2009-01-04 02:10:05 UTC 
(rev 7237)
@@ -180,7 +180,6 @@
 
          PRINT_ERR1("unable to open color database: %s",
                     strerror(errno));
-         fclose(file);
          exit(0);
        }
 


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

------------------------------------------------------------------------------
_______________________________________________
Playerstage-commit mailing list
Playerstage-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to