lib/conf.c: fix CID 284952 (Identical branches).

This commit is contained in:
Juan RP 2020-04-19 11:22:17 +02:00
parent 96acc6d8ef
commit c5904cc6ef
No known key found for this signature in database
GPG Key ID: AF19F6CB482F9368

View File

@ -389,10 +389,7 @@ parse_file(struct xbps_handle *xhp, const char *path, bool nested)
continue;
}
dir = strdup(path);
if ((rv = parse_files_glob(xhp, NULL, dirname(dir), val, true)) != 0) {
free(dir);
break;
}
rv = parse_files_glob(xhp, NULL, dirname(dir), val, true);
free(dir);
break;
}