From 2652637fb9d0e0878cc0233e7c3a16b2b27beb97 Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Fri, 10 Aug 2012 11:48:28 +0200 Subject: [PATCH] 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 --- src/text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/text.c b/src/text.c index 78411e4..b2db07c 100644 --- a/src/text.c +++ b/src/text.c @@ -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) {