From cb523a7775ed1b5f116e738711c27b623f347531 Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Wed, 5 Dec 2012 11:44:58 +0200 Subject: [PATCH] session_policy_ivi: Initialize variable and remove an unused one Remove unused 'err' variable and properly initialize 'ident' for error cases. --- plugins/session_policy_ivi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/session_policy_ivi.c b/plugins/session_policy_ivi.c index fde61df..a652964 100644 --- a/plugins/session_policy_ivi.c +++ b/plugins/session_policy_ivi.c @@ -163,7 +163,7 @@ static void selinux_context_reply(const unsigned char *context, void *user_data, struct create_data *data = user_data; struct policy_data *policy; struct connman_session_config *config = NULL; - char *ident; + char *ident = NULL; DBG("session %p", data->session); @@ -391,7 +391,6 @@ static void notify_handler(struct inotify_event *event, const char *ident) { struct policy_data *policy; - int err; if (ident == NULL) return; -- 2.7.4