--- xdemos/glxinfo.c.orig 2010-07-08 02:57:16.000000000 +0900 +++ xdemos/glxinfo.c 2011-05-08 18:43:11.551903125 +0900 @@ -600,13 +600,15 @@ visual_drawable_type(int type) }; int i; + strcpy(buffer, "(none)"); p = buffer; for (i = 0; i < 3; i++) { - if (p > buffer) - *p++ = ','; - if (type & bits[i].bit) - strcpy(p, bits[i].name); - p += strlen(bits[i].name); + if (type & bits[i].bit) { + if (p > buffer) + *p++ = ','; + strcpy(p, bits[i].name); + p += strlen(bits[i].name); + } } return buffer;