Skip to content
/ osd Public

Commit 4f81f27

Browse files
committed
Fixing the condition that considers a list empty
1 parent 19903cf commit 4f81f27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app_config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ int save_app_config(void) {
4444

4545
fprintf(file, "system:\n");
4646
fprintf(file, " web_port: %d\n", app_config.web_port);
47-
if (app_config.web_whitelist) {
47+
if (!EMPTY(*app_config.web_whitelist)) {
4848
fprintf(file, " web_whitelist: ");
4949
for (int i = 0; app_config.web_whitelist[i] && *app_config.web_whitelist[i]; i++) {
5050
fprintf(file, " - %s\n", app_config.web_whitelist[i]);

0 commit comments

Comments
 (0)