From f269a4a324396423d97da783ad372cdbb275eb65 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 20 Apr 2014 22:13:31 -0400 Subject: allow blank lines and comments --- config.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config.c b/config.c index 6f34425..0b75c63 100644 --- a/config.c +++ b/config.c @@ -122,6 +122,10 @@ static void runes_config_process_config_file(RunesTerm *t, FILE *config_file) len--; } + if (!len || line[strspn(line, " \t")] == '#') { + continue; + } + kbegin = line + strspn(line, " \t"); kend = kbegin + strcspn(kbegin, " \t="); vbegin = kend + strspn(kend, " \t"); -- cgit v1.2.3-54-g00ecf