On 07/02/2011 11:43 AM, Jan Kiszka wrote:
static const char *pch; +static char *saved_key; static jmp_buf expr_env;#define MD_TLONG 0 @@ -4254,8 +4255,11 @@ static const mon_cmd_t *monitor_parse_command(Monitor *mon, } typestr++; } - if (get_expr(mon,&val,&p)) + saved_key = key; + if (get_expr(mon,&val,&p)) { + key = saved_key; goto fail; + }
Please make saved_key a volatile local instead. Paolo