Skip to content

Commit

Permalink
Fix pkg-fetch -d. unit can be NULL here.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdrewery authored and brd committed Aug 20, 2014
1 parent 7b5e985 commit f7a5965
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libpkg/pkg_jobs_universe.c
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ pkg_jobs_universe_process_deps(struct pkg_jobs_universe *universe,
continue;

/* Explicitly request for a dependency for mirroring */
if (flags & DEPS_FLAG_MIRROR)
if (unit != NULL && flags & DEPS_FLAG_MIRROR)
pkg_jobs_add_req(universe->j, d->uid, unit);

if (rpkg != NULL) {
Expand Down

0 comments on commit f7a5965

Please sign in to comment.