Coverity PW.BRANCH_PAST_INITIALIZATION - CID 10737

Bug #957471 reported by Product Strategy Coverity Bug Uploader
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libappindicator
Fix Released
Medium
Charles Kerr
0.4
New
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: 10737
Checker: PW.BRANCH_PAST_INITIALIZATION
Category: No category available
CWE definition: http://cwe.mitre.org/data/definitions/457.html
File: /tmp/buildd/libappindicator-0.4.91/src/app-indicator.c
Function: No function name available
Code snippet:
778 AppIndicator *self = APP_INDICATOR (object);
779 AppIndicatorPrivate *priv = self->priv;
780 GEnumValue *enum_val;
781
CID 10737 - PW.BRANCH_PAST_INITIALIZATION
transfer of control bypasses initialization of:
variable "val" (declared at line 928)
782 switch (prop_id) {
783 case PROP_ID:
784 if (priv->id != NULL) {
785 g_warning ("Resetting ID value when I already had a value of: %s", priv->id);
786 break;
787 }

Related branches

Revision history for this message
Product Strategy Coverity Bug Uploader (coverity-uploader) wrote : libappindicator-0.4: /tmp/buildd/libappindicator-0.4.91/src/app-indicator.c

Source file with Coverity annotations.

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