Module: kamailio
Branch: master
Commit: d3daed0a617024fde1efabbcdab27dc4c5c140c8
URL:
https://github.com/kamailio/kamailio/commit/d3daed0a617024fde1efabbcdab27dc…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-02-08T08:29:55+01:00
db_perlvdb: removed unnecessary condition
---
Modified: src/modules/db_perlvdb/perlvdb_conv.c
---
Diff:
https://github.com/kamailio/kamailio/commit/d3daed0a617024fde1efabbcdab27dc…
Patch:
https://github.com/kamailio/kamailio/commit/d3daed0a617024fde1efabbcdab27dc…
---
diff --git a/src/modules/db_perlvdb/perlvdb_conv.c
b/src/modules/db_perlvdb/perlvdb_conv.c
index f263774658..fcf7b024a5 100644
--- a/src/modules/db_perlvdb/perlvdb_conv.c
+++ b/src/modules/db_perlvdb/perlvdb_conv.c
@@ -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 :( */