add a null check that fixes a crash but makes a block of code impossible to reach. spankies to whoever wrote it, and that person should fix it asap

SVN revision: 72138
This commit is contained in:
Mike Blumenkrantz 2012-06-14 13:49:18 +00:00
parent 6cf3ad2b92
commit 7806b4a7f3
1 changed files with 1 additions and 1 deletions

View File

@ -429,7 +429,7 @@ _12_try_restore_configuration(void)
INF("E_RANDR: \tSerialized mode is now known under the name %s.", mi->name);
mode = mi->xid;
}
else
else if (mi) /* FIXME: this is impossible, so whoever wrote it probably meant something else */
{
// The serialized mode is no longer available
mi->name = malloc(MODE_STR_LENGTH_MAX);