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).
This commit is contained in:
Martin Pulec
2023-05-09 08:33:57 +02:00
parent 65eadce92d
commit 7157b102a4

View File

@@ -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);