<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)
return;
len = XmuSnprintf(buffer, sizeof(buffer),
"Identifier \"%s\"\n"
"Vendor \"%s\"\n",
monitor->mon_identifier,
monitor->mon_vendor);
if (monitor->mon_vendor != NULL)
len = XmuSnprintf(buffer, sizeof(buffer),
"Identifier \"%s\"\n"
"Vendor \"%s\"\n",
monitor->mon_identifier,
monitor->mon_vendor);
else
len = XmuSnprintf(buffer, sizeof(buffer),
"Identifier \"%s\"\n",
monitor->mon_identifier);
option = monitor->mon_option_lst;
} break;
case SCREEN: {