Skip to content

Commit

Permalink
Remove comparison that is always "true".
Browse files Browse the repository at this point in the history
Reported by:    gcc-12
  • Loading branch information
sobomax committed Mar 23, 2023
1 parent 4537c20 commit 6389c36
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions modules/db_perlvdb/perlvdb_conv.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,10 @@ AV *conds2perlarray(db_key_t* keys, db_op_t* ops, db_val_t* vals, int n) {
array = newAV();
for (i = 0; i < n; i++) {
if (ops) {
if (ops + i)
if (*(ops + i)){
element = cond2perlcond(*(keys + i),
*(ops + i), vals + i);
}
if (ops[i]) {
element = cond2perlcond(*(keys + i),
*(ops + i), vals + i);
}
} else {
/* OP_EQ is defined in OpenSIPS _and_ perl. Includes collide :( */
#ifdef OP_EQ
Expand Down

0 comments on commit 6389c36

Please sign in to comment.