1
0
Fork 0

Silence a warning

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4070
This commit is contained in:
Peter Veenstra 2018-01-30 15:57:27 +00:00
parent 06c91d8d0b
commit 6485a80102

View file

@ -796,7 +796,8 @@ void DOS_Shell::CMD_SET(char * args) {
*p_parsed++ = '%'; p += 2; //%% => %
} else {
char * second = strchr(++p,'%');
if(!second) continue; *second++ = 0;
if (!second) continue;
*second++ = 0;
std::string temp;
if (GetEnvStr(p,temp)) {
std::string::size_type equals = temp.find('=');