Skip to content

Commit 4524f68

Browse files
committed
"Fix" compiler false alarm on unset variable
1 parent f4ecb3d commit 4524f68

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pvar.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3710,6 +3710,7 @@ static int pv_set_msg_branch_attr(struct sip_msg* msg, pv_param_t *param,
37103710
}
37113711

37123712
if (!val || val->flags&PV_VAL_NULL) {
3713+
attr_val.n = 0; //useless, makes compiler happy
37133714
attr_flags |= AVP_VAL_NULL;
37143715
} else
37153716
if(val->flags&PV_TYPE_INT) {

0 commit comments

Comments
 (0)