Fixed compiler warnings.
authorJarkko Sakkinen <ext-jarkko.2.sakkinen@nokia.com>
Mon, 15 Nov 2010 15:29:35 +0000 (07:29 -0800)
committerJarkko Sakkinen <ext-jarkko.2.sakkinen@nokia.com>
Mon, 15 Nov 2010 15:29:35 +0000 (07:29 -0800)
src/smack.c

index 79662fa..462fc1f 100644 (file)
@@ -145,7 +145,7 @@ int smack_write_rules_to_file(smack_rules_t handle, const char *path,
        struct smack_object *o, *otmp;
        FILE *file;
        char str[6];
-       int err;
+       int err = 0;
 
        file = fopen(path, "w+");
        if (!file)
@@ -309,7 +309,6 @@ int smack_write_users_to_file(smack_users_t handle, const char *path)
 {
        struct smack_user *u, *tmp;
        FILE *file;
-       char str[6];
        int err;
 
        file = fopen(path, "w+");