summaryrefslogtreecommitdiffstats
path: root/src/package.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/package.c')
-rw-r--r--src/package.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/package.c b/src/package.c
index 1fd12c7a..6f41fc58 100644
--- a/src/package.c
+++ b/src/package.c
@@ -124,16 +124,13 @@ int parse_descfile(char *descfile, pkginfo_t *info, PMList **backup, int output)
while(!feof(fp)) {
fgets(line, PATH_MAX, fp);
- if(output) {
- printf("%s", line);
- }
linenum++;
trim(line);
- if(line[0] == '#') {
+ if(strlen(line) == 0 || line[0] == '#') {
continue;
}
- if(strlen(line) == 0) {
- continue;
+ if(output) {
+ printf("%s\n", line);
}
ptr = line;
key = strsep(&ptr, "=");