Browse Source

Fix assertion when using default configuration.

tags/0.5.2
Vsevolod Stakhov 12 years ago
parent
commit
c6d5548c58
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/main.c

+ 1
- 1
src/main.c View File

@@ -192,7 +192,7 @@ read_cmd_line (gint argc, gchar **argv, struct config_file *cfg)
cfg->config_test = config_test;
cfg->rspamd_user = rspamd_user;
cfg->rspamd_group = rspamd_group;
cfg_num = g_strv_length (cfg_names);
cfg_num = cfg_names != NULL ? g_strv_length (cfg_names) : 0;
if (cfg_num == 0) {
cfg->cfg_name = FIXED_CONFIG_FILE;
}

Loading…
Cancel
Save