From: Jonas Bonn <[email protected]>

'string' is an array and therefore never NULL so this test always fails.
---
 src/stkutil.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/stkutil.c b/src/stkutil.c
index ec3f825d..9992f6c5 100644
--- a/src/stkutil.c
+++ b/src/stkutil.c
@@ -4405,9 +4405,6 @@ static gboolean build_dataobj_ussd_string(struct 
stk_tlv_builder *tlv,
        const struct stk_ussd_string *ussd = data;
        unsigned char tag = STK_DATA_OBJECT_TYPE_USSD_STRING;
 
-       if (ussd->string == NULL)
-               return TRUE;
-
        return stk_tlv_builder_open_container(tlv, cr, tag, FALSE) &&
                stk_tlv_builder_append_byte(tlv, ussd->dcs) &&
                stk_tlv_builder_append_bytes(tlv, ussd->string, ussd->len) &&
-- 
2.17.1

_______________________________________________
ofono mailing list
[email protected]
https://lists.ofono.org/mailman/listinfo/ofono

Reply via email to