diff options
author | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2010-11-27 17:39:03 -0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-11-29 13:04:35 -0600 |
commit | d725e79682207d6bdd0c58897214b2055aad272d (patch) | |
tree | f6e5ca95db9bb9a96211e3b922e6d68043273873 /src | |
parent | 8e0f9aab9e02e77a1237399e4ad37b353ea2a9f5 (diff) | |
download | ofono-d725e79682207d6bdd0c58897214b2055aad272d.tar.bz2 |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/stkutil.c | 4 |
1 files 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) |