msvcrt: Move side effect out of assert (Coverity).

This commit is contained in:
Marcus Meissner 2011-03-04 14:06:50 +01:00 committed by Alexandre Julliard
parent 8504548037
commit ecb89ba89e
1 changed files with 2 additions and 1 deletions

View File

@ -1184,7 +1184,8 @@ static BOOL handle_template(struct parsed_symbol* sym)
const char* name;
const char* args;
assert(*sym->current++ == '$');
assert(*sym->current == '$');
sym->current++;
if (!(name = get_literal_string(sym))) return FALSE;
if (!(args = get_args(sym, NULL, FALSE, '<', '>'))) return FALSE;
sym->result = str_printf(sym, "%s%s", name, args);