Coverity FORWARD_NULL - CID 10692

Bug #943708 reported by Product Strategy Coverity Bug Uploader
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
notify-osd (Ubuntu)
New
High
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: 10692
Checker: FORWARD_NULL
Category: No category available
CWE definition: http://cwe.mitre.org/data/definitions/476.html
File: /tmp/buildd/notify-osd-0.9.33/src/stack.c
Function: stack_notify_handler()
Code snippet:
724 bubble_set_icon_from_path (bubble, g_value_get_string(data));
725 else
726 g_warning ("image_path hint is not a string\n");
727 }
At conditional: "icon" taking False branch
CID 10692 - FORWARD_NULL
Comparing "icon" to null implies that "icon" might be null.
728 else if (icon && *icon != '\0')
729 {
730 g_debug("Using icon parameter\n");
731 bubble_set_icon (bubble, icon);
732 }
At conditional: "data = (GValue *)g_hash_table_lookup(hints, "icon_data")" taking True branch
733 else if ((data = (GValue*) g_hash_table_lookup (hints, "icon_data")))

Revision history for this message
Product Strategy Coverity Bug Uploader (coverity-uploader) wrote : notify-osd-oneiric: /tmp/buildd/notify-osd-0.9.33/src/stack.c

Source file with Coverity annotations.

Changed in notify-osd:
importance: Undecided → High
affects: notify-osd → notify-osd (Ubuntu)
no longer affects: notify-osd/oneiric
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.