mirror of git://git.sysmocom.de/ofono
stkutil: explicitly compare pointers to NULL
This patch was generated by the following semantic patch (http://coccinelle.lip6.fr/) // <smpl> @fix disable is_null,isnt_null1@ expression *E; @@ - !E + E == NULL // </smpl>
This commit is contained in:
parent
8e0f9aab9e
commit
d725e79682
|
@ -2337,7 +2337,7 @@ static enum stk_command_parse_result parse_dataobj(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!l2) {
|
if (l2 == NULL) {
|
||||||
if (comprehension_tlv_get_cr(iter) == TRUE)
|
if (comprehension_tlv_get_cr(iter) == TRUE)
|
||||||
parse_error = TRUE;
|
parse_error = TRUE;
|
||||||
|
|
||||||
|
@ -4145,7 +4145,7 @@ static gboolean build_dataobj_text(struct stk_tlv_builder *tlv,
|
||||||
unsigned char tag = STK_DATA_OBJECT_TYPE_TEXT;
|
unsigned char tag = STK_DATA_OBJECT_TYPE_TEXT;
|
||||||
gboolean ret;
|
gboolean ret;
|
||||||
|
|
||||||
if (!text->text && !text->yesno)
|
if (text->text == NULL && !text->yesno)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
if (stk_tlv_builder_open_container(tlv, cr, tag, TRUE) != TRUE)
|
if (stk_tlv_builder_open_container(tlv, cr, tag, TRUE) != TRUE)
|
||||||
|
|
Loading…
Reference in New Issue