Coverity PW.BRANCH_PAST_INITIALIZATION - CID 10663
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:/
CID: 10663
Checker: PW.BRANCH_
Category: No category available
CWE definition: http://
File: /tmp/buildd/
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_
transfer of control bypasses initialization of:
variable "sprovider" (declared at line 285)
282 goto exit_module_fail;
283 }
284
285 StatusProvider * sprovider = STATUS_
286 if (sprovider == NULL) {
287 g_warning("Unable to build provider from: %s", provider);
Related branches
- Lars Karlitski (community): Approve
- Ted Gould (community): Approve
-
Diff: 127 lines (+61/-57)1 file modifiedsrc/status-items.c (+61/-57)
- Ken VanDine: Pending requested
-
Diff: 119 lines (+38/-6)6 files modifiedChangeLog (+24/-0)
configure (+1/-1)
configure.ac (+1/-1)
debian/changelog (+8/-0)
src/messages-service.c (+1/-1)
src/status-provider-mc5.c (+3/-3)
Source file with Coverity annotations.