Coverity BAD_COMPARE - CID 10493

Bug #937494 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: 10493
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-scope-proxy-remote.c
Function: unity_scope_proxy_remote_constructor()
Code snippet:
1917 _g_object_unref0 (self->priv->_bus);
1918 self->priv->_bus = _tmp3_;
1919 _tmp4_ = self->priv->_bus;
1920 _tmp5_ = self->priv->_dbus_name;
CID 10493 - BAD_COMPARE
This implicit conversion to a function pointer is suspicious: "_unity_scope_proxy_remote_on_scope_appeared_gbus_name_appeared_callback == NULL"; did you intend to call the function?
1921 _tmp6_ = g_bus_watch_name_on_connection_with_closures (_tmp4_, _tmp5_, G_BUS_NAME_WATCHER_FLAGS_NONE, (GClosure*) ((_unity_scope_proxy_remote_on_scope_appeared_gbus_name_appeared_callback == NULL) ? NULL : g_cclosure_new ((GCallback) _unity_scope_proxy_remote_on_scope_appeared_gbus_name_appeared_callback, g_object_ref (self), g_object_unref)), (GClosure*) ((_unity_scope_proxy_remote_on_scope_vanished_gbus_name_vanished_callback == NULL) ? NULL : g_cclosure_new ((GCallback) _unity_scope_proxy_remote_on_scope_vanished_gbus_name_vanished_callback, g_object_ref (self), g_object_unref)));
1922 self->priv->_watcher = _tmp6_;
1923 unity_scope_proxy_remote_start_reconnection_timeout (self);
1924 }
1925 goto __finally31;
1926 __catch31_g_error:

Revision history for this message
Product Strategy Coverity Bug Uploader (coverity-uploader) wrote : libunity-5.0: /tmp/buildd/libunity-5.4.0/src/unity-scope-proxy-remote.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.