From f3b8e37cbbd5e717d0a19c62c27327f754658fa3 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sun, 15 Jul 2012 13:28:17 +0200 Subject: [PATCH] tuxtxt: avoid spurious deadlocks on startup Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/ad7c88379a2360ea1af0e5dea3a1dd7ef2c0e732 Author: Stefan Seyfried Date: 2012-07-15 (Sun, 15 Jul 2012) --- lib/libtuxtxt/tuxtxt.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/libtuxtxt/tuxtxt.cpp b/lib/libtuxtxt/tuxtxt.cpp index e2f0fe1be..bfc54c9ed 100644 --- a/lib/libtuxtxt/tuxtxt.cpp +++ b/lib/libtuxtxt/tuxtxt.cpp @@ -200,6 +200,9 @@ int toptext_getnext(int startpage, int up, int findgroup) nextgrp = nextblk = 0; current = startpage; + if (startpage == 0) + return 0; + do { if (up) tuxtxt_next_dec(¤t); @@ -5499,7 +5502,7 @@ void CreateLine25() showlink(3, next_100); } - if (//tuxtxt_cache.bttok && + if (tuxtxt_cache.bttok && screenmode == 1) /* TOP-Info present, divided screen -> create TOP overview */ { char line[TOPMENUCHARS];