diff options
Diffstat (limited to 'src/dbusbind.c')
| -rw-r--r-- | src/dbusbind.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/dbusbind.c b/src/dbusbind.c index a38a9944005..76b0da54205 100644 --- a/src/dbusbind.c +++ b/src/dbusbind.c | |||
| @@ -475,11 +475,13 @@ xd_append_arg (dtype, object, iter) | |||
| 475 | } | 475 | } |
| 476 | 476 | ||
| 477 | case DBUS_TYPE_DOUBLE: | 477 | case DBUS_TYPE_DOUBLE: |
| 478 | XD_DEBUG_MESSAGE ("%c %f", dtype, XFLOAT_DATA (object)); | 478 | { |
| 479 | if (!dbus_message_iter_append_basic (iter, dtype, | 479 | double val = XFLOAT_DATA (object); |
| 480 | &XFLOAT_DATA (object))) | 480 | XD_DEBUG_MESSAGE ("%c %f", dtype, val); |
| 481 | XD_SIGNAL2 (build_string ("Unable to append argument"), object); | 481 | if (!dbus_message_iter_append_basic (iter, dtype, &val)) |
| 482 | return; | 482 | XD_SIGNAL2 (build_string ("Unable to append argument"), object); |
| 483 | return; | ||
| 484 | } | ||
| 483 | 485 | ||
| 484 | case DBUS_TYPE_STRING: | 486 | case DBUS_TYPE_STRING: |
| 485 | case DBUS_TYPE_OBJECT_PATH: | 487 | case DBUS_TYPE_OBJECT_PATH: |