mirror of git://git.sysmocom.de/ofono
smsutil: Make sure to return 1/0
So the value might be used directly for D-Bus property emission. Otherwise D-Bus asserts and screws itself with: ofonod[7427]: src/sms.c:handle_mwi() process 7427: arguments to dbus_message_iter_append_basic() were incorrect, assertion "*bool_p == 0 || *bool_p == 1" failed in file ../../dbus/dbus-message.c line 2549.
This commit is contained in:
parent
0cdf3ced1f
commit
d7ba153737
|
@ -240,7 +240,7 @@ gboolean sms_mwi_dcs_decode(guint8 dcs, enum sms_mwi_type *type,
|
|||
else
|
||||
ch = SMS_CHARSET_7BIT;
|
||||
|
||||
act = dcs & 0x8;
|
||||
act = (dcs & 0x8) ? TRUE : FALSE;
|
||||
|
||||
t = (enum sms_mwi_type) (dcs & 0x3);
|
||||
|
||||
|
|
Loading…
Reference in New Issue