Coverity PW.BRANCH_PAST_INITIALIZATION - CID 10663

Bug #937438 reported by Product Strategy Coverity Bug Uploader
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Messaging Menu
Fix Released
Medium
Charles Kerr
0.6
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: 10663
Checker: PW.BRANCH_PAST_INITIALIZATION
Category: No category available
CWE definition: http://cwe.mitre.org/data/definitions/457.html
File: /tmp/buildd/indicator-messages-0.5.0/src/status-items.c
Function: No function name available
Code snippet:
278
279 GType provider_type = type_func();
280 if (provider_type == 0) {
281 g_warning("Unable to create type from: %s", provider);
CID 10663 - PW.BRANCH_PAST_INITIALIZATION
transfer of control bypasses initialization of:
variable "sprovider" (declared at line 285)
282 goto exit_module_fail;
283 }
284
285 StatusProvider * sprovider = STATUS_PROVIDER(g_object_new(provider_type, NULL));
286 if (sprovider == NULL) {
287 g_warning("Unable to build provider from: %s", provider);

Related branches

Revision history for this message
Product Strategy Coverity Bug Uploader (coverity-uploader) wrote : indicator-messages-0.6: /tmp/buildd/indicator-messages-0.5.0/src/status-items.c

Source file with Coverity annotations.

Changed in indicator-messages:
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers