Coverity PW.SWITCH_SELECTOR_EXPR_IS_CONSTANT - CID 10571

Bug #937489 reported by Product Strategy Coverity Bug Uploader
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libunity
New
Medium
Unassigned
5.0
New
Medium
Unassigned
libunity (Ubuntu)
New
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: 10571
Checker: PW.SWITCH_SELECTOR_EXPR_IS_CONSTANT
Category: No category available
CWE definition: No definition available
File: /tmp/buildd/libunity-5.4.0/src/unity-lens-filters.c
Function: No function name available
Code snippet:
347 _tmp0_ = renderer_name;
348 _tmp1_ = _tmp0_;
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")))) {
CID 10571 - PW.SWITCH_SELECTOR_EXPR_IS_CONSTANT
selector expression is constant
351 switch (0) {
352 default:
353 {
354 result = UNITY_FILTER_RENDERER_CHECK_OPTIONS;
355 return result;
356 }

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
Changed in libunity (Ubuntu):
importance: Undecided → Medium
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.