From b210838e87b737911a9bfbcf75ccd3d78736dad7 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Sat, 27 Nov 2010 17:39:03 -0200 Subject: core: 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/stkagent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/stkagent.c') 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); -- cgit v1.2.3