diff --git a/src/shell/shell_cmds.cpp b/src/shell/shell_cmds.cpp index 09654ec7..978dab59 100644 --- a/src/shell/shell_cmds.cpp +++ b/src/shell/shell_cmds.cpp @@ -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('=');