projects
/
platform
/
upstream
/
smack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccbaac9
)
Fixed access_type_to_int()
author
Jarkko Sakkinen
<jarkko.sakkinen@intel.com>
Wed, 5 Oct 2011 12:00:12 +0000
(15:00 +0300)
committer
Jarkko Sakkinen
<jarkko.sakkinen@intel.com>
Wed, 5 Oct 2011 12:00:12 +0000
(15:00 +0300)
src/smack.c
patch
|
blob
|
history
diff --git
a/src/smack.c
b/src/smack.c
index
4803ff5
..
36e3346
100644
(file)
--- a/
src/smack.c
+++ b/
src/smack.c
@@
-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':