]> git.pond.sub.org Git - empserver/commit
news: De-duplicate the loop over news items
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 27 Jun 2016 05:12:06 +0000 (07:12 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 6 Aug 2017 18:09:17 +0000 (20:09 +0200)
commitd63b8aa5f077ed0139a9a4180f4a7d35077a088f
treecc78a825d71dfed90189e0aadac39e340def1e4e
parent729eaa79340ebc6405b5e17104e570e3eb5bd14d
news: De-duplicate the loop over news items

Duplicated to detect empty pages in Empire 2.  Easy enough to fold
into the other loop, so do that.

While there, oops on invalid struct nwsstr member nws_ntm.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/lib/commands/news.c