summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--udev_rules_parse.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/udev_rules_parse.c b/udev_rules_parse.c
index 8ef5ffee46..5ce91df383 100644
--- a/udev_rules_parse.c
+++ b/udev_rules_parse.c
@@ -104,12 +104,9 @@ static int get_key(char **line, char **key, enum key_operation *operation, char
break;
if (linepos[0] == '=')
break;
- if (linepos[0] == '+')
- break;
- if (linepos[0] == '!')
- break;
- if (linepos[0] == ':')
- break;
+ if ((linepos[0] == '+') || (linepos[0] == '!') || (linepos[0] == ':'))
+ if (linepos[1] == '=')
+ break;
}
/* remember end of key */