projects
/
platform
/
upstream
/
isl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46153fb
)
isl_arg_parse: reset all flags with same option name whenever a flag is set
author
Sven Verdoolaege
<skimo@kotnet.org>
Sun, 1 Jan 2012 17:24:58 +0000
(18:24 +0100)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Sun, 1 Jan 2012 17:24:58 +0000
(18:24 +0100)
Otherwise, there is no way to turn off a flag that is set by default.
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_arg.c
patch
|
blob
|
history
diff --git
a/isl_arg.c
b/isl_arg.c
index
6961a07
..
fe9aa46
100644
(file)
--- a/
isl_arg.c
+++ b/
isl_arg.c
@@
-779,7
+779,7
@@
static int parse_flags_option(struct isl_arg *decl, char **arg,
if (!has_argument)
flags = arg[1];
- val =
*(unsigned *)(((char *)opt) + decl->offset)
;
+ val =
0
;
while ((comma = strchr(flags, ',')) != NULL) {
if (!set_flag(decl, &val, flags, comma - flags))