diff options
Diffstat (limited to 'gdb/cp-support.c')
-rw-r--r-- | gdb/cp-support.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/cp-support.c b/gdb/cp-support.c index 4afb79a..9ba6ee3 100644 --- a/gdb/cp-support.c +++ b/gdb/cp-support.c @@ -908,7 +908,7 @@ cp_remove_params_if_any (const char *demangled_name, bool completion_mode) we're completing / matching everything, avoid returning NULL which would make callers interpret the result as an error. */ if (demangled_name[0] == '\0' && completion_mode) - return gdb::unique_xmalloc_ptr<char> (xstrdup ("")); + return make_unique_xstrdup (""); gdb::unique_xmalloc_ptr<char> without_params = cp_remove_params_1 (demangled_name, false); |