Skip to content

Commit

Permalink
EVI: Small optimization
Browse files Browse the repository at this point in the history
(cherry picked from commit 9943f59)
  • Loading branch information
liviuchircu committed Nov 6, 2020
1 parent 867fb32 commit d4da9e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion evi/evi_params.c
Expand Up @@ -66,7 +66,8 @@ int evi_param_set(evi_param_p el, const void *param, int flags)
LM_ERR("no parameter specified\n");
return 1;
}
if (!(EVI_INT_VAL & flags) && !(EVI_STR_VAL & flags)) {

if (!(flags & (EVI_INT_VAL|EVI_STR_VAL))) {
LM_ERR("params should be int or str [%x]\n", flags);
return -1;
}
Expand Down

0 comments on commit d4da9e5

Please sign in to comment.