Coverity BAD_COMPARE - CID 10496

Reported by Product Strategy Coverity Bug Uploader on 2012-02-21
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libunity
High
Unassigned
5.0
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: 10496
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-sound-menu-mpris.c
Function: unity_mpris_gateway_export()
Code snippet:
959 _tmp38_ = mpris_extension;
960 _tmp39_ = g_strconcat (UNITY_MPRIS_INTERFACE_PREFIX, _tmp38_, NULL);
961 _data10_->dbus_name = _tmp39_;
962 _tmp40_ = _data10_->dbus_name;
CID 10496 - BAD_COMPARE
This implicit conversion to a function pointer is suspicious: "_unity_mpris_gateway_on_name_lost_gbus_name_lost_callback == NULL"; did you intend to call the function?
963 _tmp41_ = g_bus_own_name_with_closures (G_BUS_TYPE_SESSION, _tmp40_, G_BUS_NAME_OWNER_FLAGS_NONE, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, NULL)), (GClosure*) ((___lambda23__gbus_name_acquired_callback == NULL) ? NULL : g_cclosure_new ((GCallback) ___lambda23__gbus_name_acquired_callback, block10_data_ref (_data10_), block10_data_unref)), (GClosure*) ((_unity_mpris_gateway_on_name_lost_gbus_name_lost_callback == NULL) ? NULL : g_cclosure_new ((GCallback) _unity_mpris_gateway_on_name_lost_gbus_name_lost_callback, g_object_ref (self), g_object_unref)));
964 self->priv->bus_name_owner_handle = _tmp41_;
965 _g_free0 (mpris_extension);
966 block10_data_unref (_data10_);
967 _data10_ = NULL;
968 }

Michal Hruby (mhr3) on 2012-10-03
Changed in libunity:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers