+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.
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];
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);