From 6485a8010218dd12304bec0635bd8fdb966bf887 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Tue, 30 Jan 2018 15:57:27 +0000 Subject: [PATCH] Silence a warning Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4070 --- src/shell/shell_cmds.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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('=');