diff --git a/libs/pbd/debug.cc b/libs/pbd/debug.cc index fba457c83e..f967061c25 100644 --- a/libs/pbd/debug.cc +++ b/libs/pbd/debug.cc @@ -78,9 +78,10 @@ PBD::set_debug_bits (uint64_t bits) int PBD::parse_debug_options (const char* str) { + string in_str = str; typedef boost::tokenizer > tokenizer; boost::char_separator sep (","); - tokenizer tokens (string(str), sep); + tokenizer tokens (in_str, sep); uint64_t bits = 0; for (tokenizer::iterator tok_iter = tokens.begin(); tok_iter != tokens.end(); ++tok_iter) {