file_util.c cleanups. Remove redundant str_chomp from str_util.c.
[oweals/opkg-lede.git] / libopkg / opkg_conf.c
index f6d686839d0c1f4ec727e485a7eed975fab3cc83..193ae5c66d286818e69c7c23b2285381002e132b 100644 (file)
@@ -540,14 +540,11 @@ static int opkg_conf_parse_file(opkg_conf_t *conf, const char *filename,
               break;
          }
 
-         str_chomp(line);
-
          if (regexec(&comment_re, line, 0, 0, 0) == 0) {
               goto NEXT_LINE;
          }
 
          if (regexec(&valid_line_re, line, regmatch_size, regmatch, 0) == REG_NOMATCH) {
-              str_chomp(line);
               fprintf(stderr, "%s:%d: Ignoring invalid line: `%s'\n",
                       filename, line_num, line);
               goto NEXT_LINE;