Skip to content

Commit

Permalink
fix moved lookup on info command.
Browse files Browse the repository at this point in the history
  • Loading branch information
laffer1 committed Oct 13, 2024
1 parent e1e4318 commit 8911211
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmport/info.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ mport_info(mportInstance *mport, const char *packageName) {
return (NULL);
}

if (mport_moved_lookup(mport, packageName, &movedEntries) != MPORT_OK) {
if (packs != NULL && mport_moved_lookup(mport, (*packs)->origin, &movedEntries) != MPORT_OK) {
SET_ERROR(MPORT_ERR_FATAL, "The moved lookup failed.");
return (NULL);
}
Expand Down

0 comments on commit 8911211

Please sign in to comment.