diff options
Diffstat (limited to 'lib/parse_ini.c')
| -rw-r--r-- | lib/parse_ini.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 | |||
| 82 | } else { | 82 | } else { |
| 83 | i->file=strdup(&(locator[stanza_len+1])); | 83 | i->file=strdup(&(locator[stanza_len+1])); |
| 84 | } | 84 | } |
| 85 | 85 | ||
| 86 | if(i->file==NULL || i->stanza==NULL){ | 86 | if(i->file==NULL || i->stanza==NULL){ |
| 87 | die(STATE_UNKNOWN, _("malloc() failed!\n")); | 87 | die(STATE_UNKNOWN, _("malloc() failed!\n")); |
| 88 | } | 88 | } |
| @@ -110,7 +110,7 @@ np_arg_list* np_get_defaults(const char *locator, const char *default_section){ | |||
| 110 | if(inifile!=stdin) fclose(inifile); | 110 | if(inifile!=stdin) fclose(inifile); |
| 111 | } | 111 | } |
| 112 | free(i.stanza); | 112 | free(i.stanza); |
| 113 | return defaults; | 113 | return defaults; |
| 114 | } | 114 | } |
| 115 | 115 | ||
| 116 | /* read_defaults is where the meat of the parsing takes place. | 116 | /* 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){ | |||
| 161 | default: | 161 | default: |
| 162 | switch(stanzastate){ | 162 | switch(stanzastate){ |
| 163 | /* we never found the start of the first stanza, so | 163 | /* we never found the start of the first stanza, so |
| 164 | * we're dealing with a config error | 164 | * we're dealing with a config error |
| 165 | */ | 165 | */ |
| 166 | case NOSTANZA: | 166 | case NOSTANZA: |
| 167 | die(STATE_UNKNOWN, _("Config file error")); | 167 | die(STATE_UNKNOWN, _("Config file error")); |
