session_policy_ivi: Initialize variable and remove an unused one
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Wed, 5 Dec 2012 09:44:58 +0000 (11:44 +0200)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Wed, 5 Dec 2012 10:47:42 +0000 (12:47 +0200)
Remove unused 'err' variable and properly initialize 'ident' for error cases.

plugins/session_policy_ivi.c

index fde61df..a652964 100644 (file)
@@ -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;