summaryrefslogtreecommitdiffstats
path: root/src/stkagent.c
diff options
context:
space:
mode:
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);