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:27:15 -0600 |
commit | b210838e87b737911a9bfbcf75ccd3d78736dad7 (patch) | |
tree | 91a91e0a120c70283b5ae3af0776cc19ab36fc76 /src/plugin.c | |
parent | 42bafa260a844c46d1de2f878464165bfad0ab75 (diff) | |
download | ofono-b210838e87b737911a9bfbcf75ccd3d78736dad7.tar.bz2 |
core: 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/plugin.c')
-rw-r--r-- | src/plugin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugin.c b/src/plugin.c index 7c0652bb..25e9a5a2 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -88,7 +88,7 @@ static gboolean check_plugin(struct ofono_plugin_desc *desc, for (; *patterns; patterns++) if (g_pattern_match_simple(*patterns, desc->name)) break; - if (!*patterns) { + if (*patterns == NULL) { ofono_info("Ignoring %s", desc->description); return FALSE; } |