Skip to content

Commit

Permalink
db_perlvdb: removed unnecessary condition
Browse files Browse the repository at this point in the history
(cherry picked from commit d3daed0)
  • Loading branch information
miconda committed Feb 14, 2022
1 parent 56d9073 commit 10cfb3e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/modules/db_perlvdb/perlvdb_conv.c
Expand Up @@ -57,9 +57,8 @@ AV *conds2perlarray(const db_key_t* keys, const db_op_t* ops, const db_val_t* va

for (i = 0; i < n; i++) {
if (ops) {
if (ops + i)
if (*(ops + i))
element = cond2perlcond(*(keys + i),
if (*(ops + i))
element = cond2perlcond(*(keys + i),
*(ops + i), vals + i);
} else {
/* OP_EQ is defined in Kamailio _and_ perl. Includes collide :( */
Expand Down

0 comments on commit 10cfb3e

Please sign in to comment.