X-Git-Url: http://git.maemo.org/git/?p=browser-switch;a=blobdiff_plain;f=configfile.c;h=0a522aaba1e872f233ff00bb98e67c19d81613b1;hp=7f3b905f399d660fdb99c7bbef6f46f1e45b8f3b;hb=23f835f34c3b7ac183e3cf103ae8e1d46334b191;hpb=07c9702e8c2b041069e438d9547c85429cd32d76 diff --git a/configfile.c b/configfile.c index 7f3b905..0a522aa 100644 --- a/configfile.c +++ b/configfile.c @@ -111,6 +111,7 @@ void parse_config_file_end(void) { regfree(&re_ignore); regfree(&re_config1); regfree(&re_config2); + re_init = 0; } /* Read the next line from a config file and store it into a swb_config_line, @@ -143,7 +144,6 @@ int parse_config_file_line(FILE *fp, struct swb_config_line *line) { else return -1; } - printf("%s", line->key); /* no need to parse blank lines and comments */ if (!regexec(&re_ignore, line->key, 0, NULL, 0)) @@ -169,7 +169,7 @@ int parse_config_file_line(FILE *fp, struct swb_config_line *line) { /* calloc() zeroes the memory, so string is automatically null terminated */ - /* make key point to a null-terminated string holding the + /* make key point to a null-terminated string holding the config key */ len = substrs[1].rm_eo - substrs[1].rm_so; memmove(line->key, line->key+substrs[1].rm_so, len); @@ -177,7 +177,6 @@ int parse_config_file_line(FILE *fp, struct swb_config_line *line) { /* done parsing the line */ line->parsed = 1; - printf("%s: '%s'\n", line->key, line->value); finish: if (!line->parsed) {