summaryrefslogtreecommitdiffstats
path: root/src/stkagent.c
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2010-11-27 17:39:03 -0200
committerDenis Kenzior <denkenz@gmail.com>2010-11-29 13:27:15 -0600
commitb210838e87b737911a9bfbcf75ccd3d78736dad7 (patch)
tree91a91e0a120c70283b5ae3af0776cc19ab36fc76 /src/stkagent.c
parent42bafa260a844c46d1de2f878464165bfad0ab75 (diff)
downloadofono-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/stkagent.c')
-rw-r--r--src/stkagent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stkagent.c b/src/stkagent.c
index 5cf83e48..83150400 100644
--- a/src/stkagent.c
+++ b/src/stkagent.c
@@ -218,7 +218,7 @@ struct stk_agent *stk_agent_new(const char *path, const char *sender,
struct stk_agent *agent = g_try_new0(struct stk_agent, 1);
DBusConnection *conn = ofono_dbus_get_connection();
- if (!agent)
+ if (agent == NULL)
return NULL;
agent->path = g_strdup(path);