[mapserver-commits] r10997 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Thu Feb 17 13:57:43 EST 2011


Author: warmerdam
Date: 2011-02-17 10:57:43 -0800 (Thu, 17 Feb 2011)
New Revision: 10997

Modified:
   trunk/mapserver/maputil.c
Log:
avoid closing stdout in msSaveImage!

Modified: trunk/mapserver/maputil.c
===================================================================
--- trunk/mapserver/maputil.c	2011-02-16 21:34:10 UTC (rev 10996)
+++ trunk/mapserver/maputil.c	2011-02-17 18:57:43 UTC (rev 10997)
@@ -668,7 +668,9 @@
             } else {
                 ret = renderer->saveImage(img, stream, img->format);
             }
-            fclose(stream);
+            if( stream != stdout )
+                fclose(stream);
+
             return ret;
         }
         else if( MS_DRIVER_IMAGEMAP(img->format) )



More information about the mapserver-commits mailing list