Coverity PW.BRANCH_PAST_INITIALIZATION - CID 10615

Bug #939061 reported by Product Strategy Coverity Bug Uploader
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libindicator
Fix Released
Medium
Charles Kerr
0.5
Fix Released
Medium
Charles Kerr

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: 10615
Checker: PW.BRANCH_PAST_INITIALIZATION
Category: No category available
CWE definition: http://cwe.mitre.org/data/definitions/457.html
File: /tmp/buildd/libindicator-0.4.90/libindicator/indicator-object.c
Function: No function name available
Code snippet:
443 execute it, and make sure everything is a-okay */
444 get_type_t lget_type = NULL;
445 if (!g_module_symbol(module, INDICATOR_GET_TYPE_S, (gpointer *)(&lget_type))) {
446 g_warning("Unable to get '" INDICATOR_GET_TYPE_S "' symbol from module: %s", file);
CID 10615 - PW.BRANCH_PAST_INITIALIZATION
transfer of control bypasses initialization of:
variable "priv" (declared at line 467)
447 goto unrefandout;
448 }
449 if (lget_type == NULL) {
450 g_warning("Symbol '" INDICATOR_GET_TYPE_S "' is (null) in module: %s", file);
CID 10615 - PW.BRANCH_PAST_INITIALIZATION
transfer of control bypasses initialization of:
variable "priv" (declared at line 467)
451 goto unrefandout;
452 }

Related branches

Revision history for this message
Product Strategy Coverity Bug Uploader (coverity-uploader) wrote : libindicator-0.5: /tmp/buildd/libindicator-0.4.90/libindicator/indicator-object.c

Source file with Coverity annotations.

Changed in libindicator:
importance: Undecided → Medium
Revision history for this message
Charles Kerr (charlesk) wrote :
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.