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:
Lucas De Marchi 2010-11-27 17:39:03 -02:00 committed by Denis Kenzior
parent 8e0f9aab9e
commit d725e79682
1 changed files with 2 additions and 2 deletions

View File

@ -2337,7 +2337,7 @@ static enum stk_command_parse_result parse_dataobj(
}
}
if (!l2) {
if (l2 == NULL) {
if (comprehension_tlv_get_cr(iter) == 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;
gboolean ret;
if (!text->text && !text->yesno)
if (text->text == NULL && !text->yesno)
return TRUE;
if (stk_tlv_builder_open_container(tlv, cr, tag, TRUE) != TRUE)