Skip to content

Commit

Permalink
Merge pull request #137 from larchunix/clang-analyzer
Browse files Browse the repository at this point in the history
Fix clang static analyzer warning
  • Loading branch information
f2404 authored May 30, 2018
2 parents dd242f4 + f36a0f0 commit dca9d1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ static void color_print_groups (const void *p, printpkgfn f)

static void color_print_install_info (const void *p, printpkgfn f, const char *lver, const char *ver)
{
if (lver) {
if (lver && ver) {
const char *info = f (p, 'r');
if (info && strcmp (info, "local") != 0) {
printf (" %s[%s", color(C_INSTALLED), _("installed"));
Expand Down

0 comments on commit dca9d1b

Please sign in to comment.