From cf12c2e3e0d97f01ea24b8a9e3a8663a670a1e7e Mon Sep 17 00:00:00 2001 From: Nedko Arnaudov Date: Tue, 7 Dec 2010 05:29:20 +0200 Subject: [PATCH] daemon: fix wrong return value when setting project description or notes --- daemon/room.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/room.c b/daemon/room.c index d54d94ae..93ef32c0 100644 --- a/daemon/room.c +++ b/daemon/room.c @@ -1011,7 +1011,7 @@ static void ladish_room_dbus_set_project_description(struct dbus_method_call * c if ((strlen(str) == 0 && (room_ptr->project_description == NULL || strlen(room_ptr->project_description) == 0)) || (room_ptr->project_description != NULL && strcmp(str, room_ptr->project_description) == 0)) { - method_return_new_single(call_ptr, DBUS_TYPE_UINT64, &room_ptr->name); + method_return_new_single(call_ptr, DBUS_TYPE_UINT64, &room_ptr->version); return; } @@ -1044,7 +1044,7 @@ static void ladish_room_dbus_set_project_notes(struct dbus_method_call * call_pt if ((strlen(str) == 0 && (room_ptr->project_notes == NULL || strlen(room_ptr->project_notes) == 0)) || (room_ptr->project_notes != NULL && strcmp(str, room_ptr->project_notes) == 0)) { - method_return_new_single(call_ptr, DBUS_TYPE_UINT64, &room_ptr->name); + method_return_new_single(call_ptr, DBUS_TYPE_UINT64, &room_ptr->version); return; }