mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-03-17 04:30:35 +01:00
config: skip empty lines and comments (starting with #)
This commit is contained in:
parent
2f29043b13
commit
d02bfcd2aa
1 changed files with 3 additions and 1 deletions
|
|
@ -130,7 +130,9 @@ parse_commands_file (struct WpDaemonData *d, GInputStream * stream,
|
|||
/* tokenize and execute */
|
||||
cmd = strtok_r (linestart, " ", &saveptr);
|
||||
|
||||
if (!g_strcmp0 (cmd, "load-module")) {
|
||||
if (!cmd || cmd[0] == '#') {
|
||||
/* empty line or comment, skip */
|
||||
} else if (!g_strcmp0 (cmd, "load-module")) {
|
||||
abi = strtok_r (NULL, " ", &saveptr);
|
||||
module = strtok_r (NULL, " ", &saveptr);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue