Skip to content

Commit

Permalink
Merge pull request #33 from andy-bower/compiler
Browse files Browse the repository at this point in the history
clear_password(): appease -Werror=unused-variable
  • Loading branch information
t-brown authored Nov 6, 2024
2 parents 6977ad0 + 60669fa commit e3370ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/secret.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ clear_password(void)
warnx(_("error clearing password with libsecret: %s"), error->message);
g_error_free(error);
}
return(EXIT_SUCCESS);
return(!error && removed ? EXIT_SUCCESS : EXIT_FAILURE);
}
#endif

Expand Down

0 comments on commit e3370ba

Please sign in to comment.