tuxtxt: avoid spurious deadlocks on startup

Origin commit data
------------------
Commit: ad7c88379a
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-07-15 (Sun, 15 Jul 2012)
This commit is contained in:
Stefan Seyfried
2012-07-15 13:28:17 +02:00
parent fad861b271
commit f3b8e37cbb

View File

@@ -200,6 +200,9 @@ int toptext_getnext(int startpage, int up, int findgroup)
nextgrp = nextblk = 0; nextgrp = nextblk = 0;
current = startpage; current = startpage;
if (startpage == 0)
return 0;
do { do {
if (up) if (up)
tuxtxt_next_dec(&current); tuxtxt_next_dec(&current);
@@ -5499,7 +5502,7 @@ void CreateLine25()
showlink(3, next_100); showlink(3, next_100);
} }
if (//tuxtxt_cache.bttok && if (tuxtxt_cache.bttok &&
screenmode == 1) /* TOP-Info present, divided screen -> create TOP overview */ screenmode == 1) /* TOP-Info present, divided screen -> create TOP overview */
{ {
char line[TOPMENUCHARS]; char line[TOPMENUCHARS];