]> sourceware.org Git - newlib-cygwin.git/commitdiff
* gmon.c (_mcleanup): Fix scope bug when using gmon_out array.
authorCorinna Vinschen <corinna@vinschen.de>
Tue, 14 Aug 2012 19:38:43 +0000 (19:38 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 14 Aug 2012 19:38:43 +0000 (19:38 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/gmon.c

index e517525157f5929e103b86744ce3c83e56c77bbd..6cee815f8251d7b35c56fb1b2b9d57ee93c9d2b1 100644 (file)
@@ -1,3 +1,7 @@
+2012-08-14  Corinna Vinschen  <corinna@vinschen.de>
+
+       * gmon.c (_mcleanup): Fix scope bug when using gmon_out array.
+
 2012-08-14  Christopher Faylor  <me.cygwin2012@cgf.cx>
 
        * errno.cc (errmap): Keep sorted.
index 13342eb7da73874f7bb15c0064e6c58e6eccaa85..56f9440dd715cd399dae1d55cc167b16380cb2ef 100644 (file)
@@ -146,6 +146,9 @@ _mcleanup()
        struct gmonparam *p = &_gmonparam;
        struct gmonhdr gmonhdr, *hdr;
        char *proffile;
+#ifndef nope
+       char gmon_out[] = "gmon.out";
+#endif
 #ifdef DEBUG
        int log, len;
        char dbuf[200];
@@ -203,10 +206,7 @@ _mcleanup()
                proffile = "gmon.out";
        }
 #else
-       {
-         char gmon_out[] = "gmon.out";
-         proffile = gmon_out;
-       }
+       proffile = gmon_out;
 #endif
 
        fd = open(proffile , O_CREAT|O_TRUNC|O_WRONLY|O_BINARY, 0666);
This page took 0.031853 seconds and 5 git commands to generate.