summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJonas Bonn <jonas@southpole.se>2018-10-26 12:13:16 +0200
committerDenis Kenzior <denkenz@gmail.com>2018-10-29 13:59:19 -0500
commitec3c6c67afca3354ed852eda5125d882c684d6a6 (patch)
tree5296db031cf7e1a68bd8ab75abbd1f7e9349a313 /src
parenta1141ae393991e9b19d96e37958789ca03abf4f9 (diff)
downloadofono-ec3c6c67afca3354ed852eda5125d882c684d6a6.tar.gz
stkutil: remove test for impossible condition
'string' is an array and therefore never NULL so this test always fails.
Diffstat (limited to 'src')
-rw-r--r--src/stkutil.c3
1 files changed, 0 insertions, 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) &&