Coverity PW.BRANCH_PAST_INITIALIZATION - CID 10796

Bug #957611 reported by Product Strategy Coverity Bug Uploader
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libindicate
Fix Released
Low
Charles Kerr
0.6
Fix Released
Undecided
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: 10796
Checker: PW.BRANCH_PAST_INITIALIZATION
Category: No category available
CWE definition: http://cwe.mitre.org/data/definitions/457.html
File: /tmp/buildd/libindicate-0.6.91/libindicate/listener.c
Function: No function name available
Code snippet:
957
958 if (error != NULL) {
959 g_warning("Unable to get property data: %s", error->message);
960 g_error_free(error);
CID 10796 - PW.BRANCH_PAST_INITIALIZATION
transfer of control bypasses initialization of:
variable "value" (declared at line 964)
961 goto cleanup;
962 }
963
964 GVariant * value = g_variant_get_child_value(retvalue, 0);
965 if (g_variant_is_of_type(value, G_VARIANT_TYPE_VARIANT)) {
966 value = g_variant_get_variant(value);

Related branches

Revision history for this message
Product Strategy Coverity Bug Uploader (coverity-uploader) wrote : libindicate-0.6: /tmp/buildd/libindicate-0.6.91/libindicate/listener.c

Source file with Coverity annotations.

Changed in libindicate:
importance: Undecided → Medium
Charles Kerr (charlesk)
Changed in libindicate:
status: New → In Progress
importance: Medium → Low
assignee: nobody → Charles Kerr (charlesk)
Charles Kerr (charlesk)
Changed in libindicate:
status: In Progress → Fix Committed
Ted Gould (ted)
Changed in libindicate:
status: Fix Committed → Fix Released
Charles Kerr (charlesk)
Changed in libindicate:
status: Fix Released → Fix Committed
Charles Kerr (charlesk)
Changed in libindicate:
status: Fix Committed → Fix Released
Charles Kerr (charlesk)
Changed in libindicate:
milestone: none → 0.6.92
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.