Skip to content
Snippets Groups Projects
Commit 8b6aaef3 authored by Claudio Bisegni's avatar Claudio Bisegni
Browse files

commented code will fire a false allert on static check

  	5. var_compare_op: Comparing av.value_buffer to null implies that av.value_buffer might be null.
227                        if(av.size && (av.type == 6) && av.value_buffer ){
228                                LDBG_<<"adding attribute value '"<<av.name<<"' size:"<<av.size<<" type:"<<av.type<<" subtype:"<<((av.sub_type.size()>0)?av.sub_type[0]:-1)<<" stringa:"<<(const char*)av.value_buffer;
229                        } else {
   	6. Condition !!_boost_log_record_230, taking false branch.
230                                LDBG_<<"adding attribute value '"<<av.name<<"' size:"<<av.size<<" type:"<<av.type<<" subtype:"<<((av.sub_type.size()>0)?av.sub_type[0]:-1);
231                        }
232                }
233                //add attribute
234                addAttribute(av.name,
235                                av.size,
236                                av.type,
237                                av.sub_type);
238                //udpate value
239

CID 167151 (#1 of 1): Dereference after null check (FORWARD_NULL)
7. var_deref_model: getAsVariant dereferences null av.value_buffer. [show details]
240                getValueSettingByName(av.name)->setValue(av.getAsVariant());
241        }
242}
parent 9af5680f
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment