From 7157b102a481ac9f257d28b8d72b3c00824bf2ab Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Tue, 9 May 2023 08:33:57 +0200 Subject: [PATCH] debug.cpp: fixed error in debug_file_dump Not critical at all - the comma-separated option could not have been used so far (it was intended to separate modules, but this funcion is used in only one so far). --- src/debug.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/debug.cpp b/src/debug.cpp index cfe073fc1..61f868683 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -308,8 +308,7 @@ void debug_file_dump(const char *key, void (*serialize)(const void *data, FILE * } // check if key is contained - string not_first = ","; - not_first + key; + string not_first = string(",") + key; int skip_n = 0; if (strstr(dump_file_val, key) == dump_file_val) { const char *val = dump_file_val + strlen(key);