Don't call strtok twice if it failed the first time.

This commit is contained in:
Alexandre Julliard 2001-04-04 00:11:40 +00:00
parent 09cc91d1a8
commit 1af1c67dab
1 changed files with 1 additions and 2 deletions

View File

@ -421,9 +421,8 @@ int DOSCONF_ReadConfig(void)
int ret = 1;
PROFILE_GetWineIniString( "wine", "config.sys", "", buffer, sizeof(buffer) );
filename = strtok(buffer, ",");
if (!(filename = strtok(buffer, ","))) return ret;
menuname = strtok(NULL, ",");
if (!filename) return ret;
DOSFS_GetFullName(filename, FALSE, &fullname);
if (menuname) menu_default = strdup(menuname);