summaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorDenis Vlasenko2008-07-17 17:58:44 +0000
committerDenis Vlasenko2008-07-17 17:58:44 +0000
commita474b689914e38e7cd2f9c22ee7b8308cdeeb955 (patch)
treef36a66849cd90633fe90337652900ee305456923 /libbb
parent02a1c6a7c337334a171787a4dd84083029fd490f (diff)
downloadbusybox-a474b689914e38e7cd2f9c22ee7b8308cdeeb955.zip
busybox-a474b689914e38e7cd2f9c22ee7b8308cdeeb955.tar.gz
init: fix compile-time error; fix exiting on broken config file
parse_config: cosmetics
Diffstat (limited to 'libbb')
-rw-r--r--libbb/parse_config.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libbb/parse_config.c b/libbb/parse_config.c
index 2bd2d4f..5f6dbbd 100644
--- a/libbb/parse_config.c
+++ b/libbb/parse_config.c
@@ -56,16 +56,16 @@ void FAST_FUNC config_close(parser_t *parser)
fclose(parser->fp);
}
-int FAST_FUNC config_read(parser_t *parser, char **tokens, int ntokens, int mintokens, const char*delims,char comment)
+int FAST_FUNC config_read(parser_t *parser, char **tokens, int ntokens, int mintokens, const char *delims, char comment)
{
char *line, *q;
int ii, seen;
- /* do not treat subsequent delimiters as one delimiter */
+ /* do not treat consecutive delimiters as one delimiter */
bool noreduce = (ntokens < 0);
if (noreduce)
ntokens = -ntokens;
- memset(tokens, 0, sizeof(void *) * ntokens);
+ memset(tokens, 0, sizeof(tokens[0]) * ntokens);
config_free_data(parser);
while (1) {