From 8fd755147a17512f09b98a837a2f0a6997c10b6b Mon Sep 17 00:00:00 2001 From: "Julian M. Kunkel" Date: Fri, 19 Apr 2019 10:20:04 +0100 Subject: [PATCH] Fix for #144 --- src/parse_options.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/parse_options.c b/src/parse_options.c index 71af8e5..8a569a5 100755 --- a/src/parse_options.c +++ b/src/parse_options.c @@ -322,9 +322,12 @@ void ParseLine(char *line, IOR_param_t * test, options_all_t * module_options) start = line; do { + end = strchr(start, '#'); + if (end != NULL) + *end = '\0'; end = strchr(start, ','); if (end != NULL) - *end = '\0'; + *end = '\0'; DecodeDirective(start, test, module_options); start = end + 1; } while (end != NULL);