game_updateinstallcount: Always return 1 when no packagenames are given

This commit is contained in:
Marco Cawthorne 2021-01-24 00:13:01 +01:00
parent 085607e022
commit bf8f8e24cb
1 changed files with 5 additions and 0 deletions

View File

@ -95,6 +95,11 @@ game_updateinstallcount(void)
{
int count;
/* always return something positive when no packages are defined */
if (games[gameinfo_current].pkgname == "") {
return 1;
}
/* look for the valid packages in the gameinfo pkgname */
int pkgcount = tokenize(games[gameinfo_current].pkgname);