projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
789436f
)
gallium/util: Fix parsing of options with underscore.
author
José Fonseca
<jfonseca@vmware.com>
Wed, 27 Jun 2012 10:15:53 +0000
(11:15 +0100)
committer
José Fonseca
<jfonseca@vmware.com>
Wed, 27 Jun 2012 10:16:18 +0000
(11:16 +0100)
For example
GALLIVM_DEBUG=no_brilinear
which was being parsed as two options, "no" and "brilinear".
src/gallium/auxiliary/util/u_debug.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_debug.c
b/src/gallium/auxiliary/util/u_debug.c
index 0a350cae7ddc5993c663fca899f741259312c0eb..bf98f222ec092b445a0389c6e378473832bb9832 100644
(file)
--- a/
src/gallium/auxiliary/util/u_debug.c
+++ b/
src/gallium/auxiliary/util/u_debug.c
@@
-204,7
+204,7
@@
static boolean str_has_option(const char *str, const char *name)
* we compare 'start' up to 'str-1' with 'name'. */
while (1) {
- if (!*str || !
isalnum(*str
)) {
+ if (!*str || !
(isalnum(*str) || *str == '_'
)) {
if (str-start == name_len &&
!memcmp(start, name, name_len)) {
return TRUE;