Skip to content

Commit

Permalink
statistics: remove uninitilized value test
Browse files Browse the repository at this point in the history
Fixes Coverity CID 40909

(cherry picked from commit 3377bc11a580ec79b3b4449c06ac544189092e3f)
  • Loading branch information
razvancrainea committed Nov 14, 2016
1 parent f96d679 commit 93188c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/statistics/statistics.c
Expand Up @@ -381,7 +381,7 @@ static inline int get_stat_name(struct sip_msg* msg, pv_name_t *name,
if (name->u.isname.type==0) {
/* name is FMT */
if (pv_printf_s( msg, (pv_elem_t *)name->u.isname.name.s.s,
&(pv_val.rs) )!=0 || (pv_val.flags&PV_VAL_NULL) ) {
&(pv_val.rs) )!=0) {
LM_ERR("failed to get format string value\n");
return -1;
}
Expand Down

0 comments on commit 93188c2

Please sign in to comment.