From 7806b4a7f3571ee260654a771e4fb75f9acde06b Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 14 Jun 2012 13:49:18 +0000 Subject: [PATCH] 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 --- src/bin/e_randr_12_serialization.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/e_randr_12_serialization.c b/src/bin/e_randr_12_serialization.c index f6ae09196..0fe9912ae 100644 --- a/src/bin/e_randr_12_serialization.c +++ b/src/bin/e_randr_12_serialization.c @@ -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);