aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2012-06-27 11:15:53 +0100
committerJosé Fonseca <[email protected]>2012-06-27 11:16:18 +0100
commitd1c5ea9207c5ce036fda123430c40364ab8de5af (patch)
tree8324cc3a5dee6be38d8b8b2c04f005c8a1bcd4b4
parent789436f1e07a68b632937d9f2101efc5e68f7499 (diff)
gallium/util: Fix parsing of options with underscore.
For example GALLIVM_DEBUG=no_brilinear which was being parsed as two options, "no" and "brilinear".
-rw-r--r--src/gallium/auxiliary/util/u_debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_debug.c b/src/gallium/auxiliary/util/u_debug.c
index 0a350cae7dd..bf98f222ec0 100644
--- 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;