summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2014-06-18 21:15:21 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2014-06-18 21:15:21 (GMT)
commit2bf7647be60cd53d9e54fdcf970a90fe08797819 (patch)
treee897e55fdc83bb8032d8e9cf331b406c3f69b21c /lib
parentb81c10e00cc71bf1be90510114e410ed691dc266 (diff)
downloadmonitoring-plugins-2bf7647be60cd53d9e54fdcf970a90fe08797819.tar.gz
lib/parse_ini.c: Add newline to die() calls
Our die() function doesn't append a newline character to the message.
Diffstat (limited to 'lib')
-rw-r--r--lib/parse_ini.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/parse_ini.c b/lib/parse_ini.c
index 30b79d7..447bd45 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;