diff options
-rw-r--r-- | lib/parse_ini.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/parse_ini.c b/lib/parse_ini.c index 30b79d74..447bd454 100644 --- a/lib/parse_ini.c +++ b/lib/parse_ini.c | |||
@@ -368,11 +368,11 @@ default_file_in_path(void) | |||
368 | /* shall we spit out a warning that NAGIOS_CONFIG_PATH is deprecated? */ | 368 | /* shall we spit out a warning that NAGIOS_CONFIG_PATH is deprecated? */ |
369 | 369 | ||
370 | if ((tokens = strdup(config_path)) == NULL) | 370 | if ((tokens = strdup(config_path)) == NULL) |
371 | die(STATE_UNKNOWN, _("Insufficient Memory")); | 371 | die(STATE_UNKNOWN, "%s\n", _("Insufficient Memory")); |
372 | for (dir = strtok(tokens, ":"); dir != NULL; dir = strtok(NULL, ":")) { | 372 | for (dir = strtok(tokens, ":"); dir != NULL; dir = strtok(NULL, ":")) { |
373 | for (file = default_ini_file_names; *file != NULL; file++) { | 373 | for (file = default_ini_file_names; *file != NULL; file++) { |
374 | if ((asprintf(&ini_file, "%s/%s", dir, *file)) < 0) | 374 | if ((asprintf(&ini_file, "%s/%s", dir, *file)) < 0) |
375 | die(STATE_UNKNOWN, _("Insufficient Memory")); | 375 | die(STATE_UNKNOWN, "%s\n", _("Insufficient Memory")); |
376 | if (access(ini_file, F_OK) == 0) { | 376 | if (access(ini_file, F_OK) == 0) { |
377 | free(tokens); | 377 | free(tokens); |
378 | return ini_file; | 378 | return ini_file; |