Fixed access_type_to_int()
authorJarkko Sakkinen <jarkko.sakkinen@intel.com>
Wed, 5 Oct 2011 12:00:12 +0000 (15:00 +0300)
committerJarkko Sakkinen <jarkko.sakkinen@intel.com>
Wed, 5 Oct 2011 12:00:12 +0000 (15:00 +0300)
src/smack.c

index 4803ff5..36e3346 100644 (file)
@@ -295,7 +295,7 @@ inline int access_type_to_int(const char *access_type)
        unsigned access;
 
        access = 0;
-       for (i = 0; i < ACC_LEN || access_type[i] != '\0'; i++)
+       for (i = 0; i < ACC_LEN && access_type[i] != '\0'; i++)
                switch (access_type[i]) {
                case 'r':
                case 'R':