Coverity BAD_COMPARE - CID 10491

Bug #937528 reported by Product Strategy Coverity Bug Uploader
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libunity
Invalid
High
Unassigned
5.0
Invalid
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: 10491
Checker: BAD_COMPARE
Category: No category available
CWE definition: http://cwe.mitre.org/data/definitions/628.html
File: /tmp/buildd/libunity-5.4.0/src/unity-inspector.c
Function: unity_inspector_construct()
Code snippet:
129 }
130 _g_object_unref0 (self->priv->bus);
131 self->priv->bus = _tmp1_;
132 _tmp2_ = self->priv->bus;
CID 10491 - BAD_COMPARE
This implicit conversion to a function pointer is suspicious: "_unity_inspector_on_unity_appeared_gbus_name_appeared_callback == NULL"; did you intend to call the function?
133 _tmp3_ = g_bus_watch_name_on_connection_with_closures (_tmp2_, "com.canonical.Unity", G_BUS_NAME_WATCHER_FLAGS_NONE, (GClosure*) ((_unity_inspector_on_unity_appeared_gbus_name_appeared_callback == NULL) ? NULL : g_cclosure_new ((GCallback) _unity_inspector_on_unity_appeared_gbus_name_appeared_callback, g_object_ref (self), g_object_unref)), (GClosure*) ((_unity_inspector_on_unity_vanished_gbus_name_vanished_callback == NULL) ? NULL : g_cclosure_new ((GCallback) _unity_inspector_on_unity_vanished_gbus_name_vanished_callback, g_object_ref (self), g_object_unref)));
134 self->priv->unity_watcher = _tmp3_;
135 _tmp4_ = self->priv->bus;
136 _tmp5_ = g_variant_new ("(s)", "com.canonical.Unity", NULL);
137 _tmp6_ = g_variant_ref_sink (_tmp5_);
138 _tmp7_ = g_variant_type_new ("(b)");

Revision history for this message
Product Strategy Coverity Bug Uploader (coverity-uploader) wrote : libunity-5.0: /tmp/buildd/libunity-5.4.0/src/unity-inspector.c

Source file with Coverity annotations.

Changed in libunity:
importance: Undecided → High
Michal Hruby (mhr3)
Changed in libunity:
status: New → Invalid
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.