Coverity DEADCODE - CID 10498

Bug #937505 reported by Product Strategy Coverity Bug Uploader
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libunity
Invalid
Medium
Unassigned
5.0
Invalid
Medium
Unassigned

Bug Description

This bug is exported from the Coverity Integration Manager on Canonical's servers. For information on how this is done please see this website: https://wiki.ubuntu.com/CanonicalProductStrategy/Coverity
CID: 10498
Checker: DEADCODE
Category: No category available
CWE definition: http://cwe.mitre.org/data/definitions/561.html
File: /tmp/buildd/libunity-5.4.0/src/unity-lens-filters.c
Function: unity_filter_renderer_for_name()
Code snippet:
344 static GQuark _tmp2_label3 = 0;
345 static GQuark _tmp2_label4 = 0;
346 g_return_val_if_fail (renderer_name != NULL, 0);
347 _tmp0_ = renderer_name;
CID 10498 - DEADCODE
After this line (or expression), the value of "_tmp1_" cannot be 0.
348 _tmp1_ = _tmp0_;
CID 10498 - DEADCODE
On this path, the condition "NULL == _tmp1_" cannot be true.
Execution cannot reach this expression "0U" inside statement "_tmp3_ = ((NULL == _tmp1_) ...".
349 _tmp3_ = (NULL == _tmp1_) ? 0 : g_quark_from_string (_tmp1_);
350 if (_tmp3_ == ((0 != _tmp2_label0) ? _tmp2_label0 : (_tmp2_label0 = g_quark_from_static_string ("filter-checkoption")))) {
351 switch (0) {
352 default:
353 {

Revision history for this message
Product Strategy Coverity Bug Uploader (coverity-uploader) wrote : libunity-5.0: /tmp/buildd/libunity-5.4.0/src/unity-lens-filters.c

Source file with Coverity annotations.

Changed in libunity:
importance: Undecided → Medium
Michal Hruby (mhr3)
Changed in libunity:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.