if (icons != NULL) { char *c; /* XXX */ if((c = strchr(icons, ',')) != NULL) *c = '\0'; icon_str = icons; }