Check for configuration strings that are given but turn out to be empty, issue a warning and ignore them.

This commit is contained in:
Mike Brady
2025-04-14 10:40:26 +01:00
parent a4807bc327
commit e05448aecc
9 changed files with 63 additions and 50 deletions
+3 -1
View File
@@ -116,8 +116,10 @@ static int init(int argc, char **argv) {
if (config.cfg != NULL) {
/* Get the Output Pipename. */
const char *str;
if (config_lookup_string(config.cfg, "pipe.name", &str)) {
if (config_lookup_non_empty_string(config.cfg, "pipe.name", &str)) {
pipename = (char *)str;
} else {
die("pipename needed");
}
}