From: Ingo Molnar Date: Tue, 20 Feb 2007 09:19:44 +0000 (+0100) Subject: fio: allow '#' comments X-Git-Tag: fio-1.12~58 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=5cc2da300b3fc30e00b79b4ddb3f372df3b2fe93 fio: allow '#' comments allow script-type comment's: # comment Signed-off-by: Ingo Molnar --- diff --git a/init.c b/init.c index 9e7fb2c0..744ae854 100644 --- a/init.c +++ b/init.c @@ -895,6 +895,8 @@ static int is_empty_or_comment(char *line) for (i = 0; i < strlen(line); i++) { if (line[i] == ';') return 1; + if (line[i] == '#') + return 1; if (!isspace(line[i]) && !iscntrl(line[i])) return 0; }