<http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6321613>
    xorgcfg dumps core when it reads a configuration file that has a
    Monitor Section, but does not have a "VendorName" entry inside it.
    (Henry Zhao, Sun Microsystems)
This commit is contained in:
Alan Coopersmith 2005-09-23 00:27:07 +00:00
parent 99793543c0
commit 7554e1bf29

View File

@ -1317,11 +1317,16 @@ SetTip(xf86cfgDevice *device)
if (monitor == NULL) if (monitor == NULL)
return; return;
len = XmuSnprintf(buffer, sizeof(buffer), if (monitor->mon_vendor != NULL)
"Identifier \"%s\"\n" len = XmuSnprintf(buffer, sizeof(buffer),
"Vendor \"%s\"\n", "Identifier \"%s\"\n"
monitor->mon_identifier, "Vendor \"%s\"\n",
monitor->mon_vendor); monitor->mon_identifier,
monitor->mon_vendor);
else
len = XmuSnprintf(buffer, sizeof(buffer),
"Identifier \"%s\"\n",
monitor->mon_identifier);
option = monitor->mon_option_lst; option = monitor->mon_option_lst;
} break; } break;
case SCREEN: { case SCREEN: {