diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c index 4be55d8d76b81326d3859679c31d4443f860ee7c..86a9abb9a1ce832e3872d7a4f5d553c4a147447e 100644 --- a/lib/dynamic_debug.c +++ b/lib/dynamic_debug.c @@ -183,6 +183,8 @@ static int ddebug_tokenize(char *buf, char *words[], int maxwords) buf = skip_spaces(buf); if (!*buf) break; /* oh, it was trailing whitespace */ + if (*buf == '#') + break; /* token starts comment, skip rest of line */ /* find `end' of word, whitespace separated or quoted */ if (*buf == '"' || *buf == '\'') {