diff options
Diffstat (limited to 'staptree.cxx')
-rw-r--r-- | staptree.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/staptree.cxx b/staptree.cxx index aa37b754..b4975017 100644 --- a/staptree.cxx +++ b/staptree.cxx @@ -97,10 +97,10 @@ probe_point::probe_point (): } -unsigned probe::last_probeidx = 0; probe::probe (): body (0), tok (0) { + static unsigned last_probeidx = 0; this->name = string ("probe_") + lex_cast<string>(last_probeidx ++); } |