mirror of
https://github.com/troglobit/finit.git
synced 2026-10-21 11:29:42 +00:00
plugins: modules-load: skip lines starting with '#'
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
605c489937
commit
10392e9639
2 files changed
+7
-1
No files matched your search
@@ -69,6 +69,9 @@ static void load(void *arg)
|
||||
while (fgets(line, sizeof(line), fp)) {
|
||||
char cmd[CMD_SIZE], *mod, *args;
|
||||
|
||||
if (line[0] == '#')
|
||||
continue;
|
||||
|
||||
mod = strip_line(line);
|
||||
if (!*mod)
|
||||
continue;
|
||||
|
||||
Reference in new issue
Block a user