text: fix choosing fallback backend

We didn't correctly choose the fallback backend but instead used the
last-registered backend. Fix this.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
David Herrmann 2012-08-10 11:48:28 +02:00
parent df84e9f217
commit 2652637fb9

View File

@ -180,7 +180,7 @@ int kmscon_text_new(struct kmscon_text **out,
ret = -EFAULT;
} else {
ret = 0;
def = kmscon_dlist_entry(text__list.next,
def = kmscon_dlist_entry(text__list.prev,
struct text_backend,
list);
if (!backend) {