diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2012-01-31 13:14:23 +0000 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2012-01-31 13:14:23 +0000 |
commit | 54a1afa9a8d49171fdbbbe75220312faa936f330 (patch) | |
tree | 6b9ae29e7af5f63b06c30f23521b671216158457 | |
parent | 207b6835b70bdd11883298ae6523d66ee812cdf0 (diff) |
Fix glxLogExtensions to handle a null string without crashing
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
-rw-r--r-- | hw/xwin/glx/indirect.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/xwin/glx/indirect.c b/hw/xwin/glx/indirect.c index 86fef55d1..a5b225102 100644 --- a/hw/xwin/glx/indirect.c +++ b/hw/xwin/glx/indirect.c @@ -479,6 +479,7 @@ glxLogExtensions(const char *prefix, const char *extensions) } strl = strtok(str, " "); + if (strl == NULL) strl = ""; ErrorF("%s%s", prefix, strl); length = strlen(prefix) + strlen(strl); |