Reported by John L. Chmielewski.
git-svn-id: http://opkg.googlecode.com/svn/trunk@331
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
{
/* these flags are a bit hackish... */
static int reading_conffiles = 0, reading_description = 0;
+ int ret = 0;
switch (*line) {
case 'A':
parse_conffiles(pkg, line);
goto dont_reset_flags;
}
- break;
+ /* FALLTHROUGH */
default:
/* For package lists, signifies end of package. */
- if(line_is_blank(line))
- return 1;
+ if(line_is_blank(line)) {
+ ret = 1;
+ break;
+ }
}
reading_description = 0;
dont_reset_flags:
- return 0;
+ return ret;
}
int