game_updateinstallcount: Always return 1 when no packagenames are given
This commit is contained in:
parent
085607e022
commit
bf8f8e24cb
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue