From caa8bd6423e2d0d1b4e72c150e80b9c6a9e1b7fe Mon Sep 17 00:00:00 2001 From: Thomas Guyot-Sionnest Date: Wed, 19 Nov 2008 06:45:18 +0000 Subject: Bulk EOL cleanup $ git diff --ignore-space-change|diffstat 0 files changed git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2087 f882894a-f735-0410-b71e-b25c423dba1c --- lib/parse_ini.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/parse_ini.c') diff --git a/lib/parse_ini.c b/lib/parse_ini.c index 57321753..c19952db 100644 --- a/lib/parse_ini.c +++ b/lib/parse_ini.c @@ -82,7 +82,7 @@ static void parse_locator(const char *locator, const char *def_stanza, np_ini_in } else { i->file=strdup(&(locator[stanza_len+1])); } - + if(i->file==NULL || i->stanza==NULL){ die(STATE_UNKNOWN, _("malloc() failed!\n")); } @@ -110,7 +110,7 @@ np_arg_list* np_get_defaults(const char *locator, const char *default_section){ if(inifile!=stdin) fclose(inifile); } free(i.stanza); - return defaults; + return defaults; } /* read_defaults is where the meat of the parsing takes place. @@ -161,7 +161,7 @@ static int read_defaults(FILE *f, const char *stanza, np_arg_list **opts){ default: switch(stanzastate){ /* we never found the start of the first stanza, so - * we're dealing with a config error + * we're dealing with a config error */ case NOSTANZA: die(STATE_UNKNOWN, _("Config file error")); -- cgit v1.2.3