summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server/src/geofence_dbus_server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/geofence_dbus_server.c b/server/src/geofence_dbus_server.c
index 441dc75..5740139 100644
--- a/server/src/geofence_dbus_server.c
+++ b/server/src/geofence_dbus_server.c
@@ -377,7 +377,7 @@ static void on_bus_acquired(GDBusConnection *conn, const gchar *name, gpointer u
geofence_dbus_callback_s *dbus_callback = ctx->dbus_callback;
geofence_dbus_signal_s *dbus_signal = g_new0(geofence_dbus_signal_s, 1);
- g_return_val_if_fail(dbus_signal, GEOFENCE_DBUS_SERVER_ERROR_MEMORY);
+ g_return_if_fail(dbus_signal);
if (dbus_callback->add_geofence_cb)
dbus_signal->add_geofence_h = g_signal_connect(geofence, "handle-add-geofence", G_CALLBACK(on_add_geofence), ctx);