summary refs log tree commit diff
path: root/csu/gmon-start.c
diff options
context:
space:
mode:
Diffstat (limited to 'csu/gmon-start.c')
-rw-r--r--csu/gmon-start.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/csu/gmon-start.c b/csu/gmon-start.c
index b5ad6f6ae8..e5b45333cd 100644
--- a/csu/gmon-start.c
+++ b/csu/gmon-start.c
@@ -49,8 +49,10 @@ __gmon_start__ (void)
      into every shared library, each of their init functions will call us.  */
   static int called;
 
-  if (called++)
+  if (called)
     return;
+
+  called = 1;
 #endif
 
   /* Start keeping profiling records.  */