Skip to content

Commit

Permalink
Add pkg check against NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
f2404 committed May 20, 2016
1 parent 448d0b2 commit 0003ffa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/alpm-query.c
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,7 @@ const char *alpm_pkg_get_str (const void *p, unsigned char c)
break;
case 'o':
pkg = get_sync_pkg (pkg);
if (!pkg) break;
info = itostr (alpm_pkg_get_outofdate (pkg));
free_info = true;
break;
Expand Down

0 comments on commit 0003ffa

Please sign in to comment.