Skip to content

Commit 4f366c4

Browse files
markjdbbapt
authored andcommitted
libpkg: Remove dead code in pkg_jobs_new()
pkg_jobs_universe_new() doesn't fail.
1 parent df79292 commit 4f366c4

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

libpkg/pkg_jobs.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,7 @@ pkg_jobs_new(struct pkg_jobs **j, pkg_jobs_t t, struct pkgdb *db)
9090
assert(db != NULL);
9191

9292
*j = xcalloc(1, sizeof(struct pkg_jobs));
93-
9493
(*j)->universe = pkg_jobs_universe_new(*j);
95-
96-
if ((*j)->universe == NULL) {
97-
free(*j);
98-
return (EPKG_FATAL);
99-
}
100-
10194
(*j)->db = db;
10295
(*j)->type = t;
10396
(*j)->solved = false;

0 commit comments

Comments
 (0)