diff options
Diffstat (limited to 'src/debug.cpp')
-rw-r--r-- | src/debug.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/debug.cpp b/src/debug.cpp index 85c42bdaf..a13cb0efa 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -142,11 +142,12 @@ void SetDebugString(const char *s) /* check debugging levels */ p = NULL; - for (i = debug_level; i != endof(debug_level); ++i) + for (i = debug_level; i != endof(debug_level); ++i) { if (s == t + strlen(i->name) && strncmp(t, i->name, s - t) == 0) { p = i->level; break; } + } if (*s == '=') s++; v = strtoul(s, &end, 0); |