Skip to content

Commit

Permalink
change && to || for TDNFAlterRepoState for invalid argument check
Browse files Browse the repository at this point in the history
  • Loading branch information
sameluch committed Sep 20, 2024
1 parent 066bd38 commit 2a83dc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/repolist.c
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ TDNFAlterRepoState(
{
uint32_t dwError = 0;
int nIsGlob = 0;
if(!pRepos && IsNullOrEmptyString(pszId))
if(!pRepos || IsNullOrEmptyString(pszId))
{
dwError = ERROR_TDNF_INVALID_PARAMETER;
BAIL_ON_TDNF_ERROR(dwError);
Expand Down

0 comments on commit 2a83dc7

Please sign in to comment.