From d725e79682207d6bdd0c58897214b2055aad272d Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Sat, 27 Nov 2010 17:39:03 -0200 Subject: [PATCH] stkutil: explicitly compare pointers to NULL This patch was generated by the following semantic patch (http://coccinelle.lip6.fr/) // @fix disable is_null,isnt_null1@ expression *E; @@ - !E + E == NULL // --- src/stkutil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stkutil.c b/src/stkutil.c index 9f3d5053..a2114620 100644 --- a/src/stkutil.c +++ b/src/stkutil.c @@ -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)