summaryrefslogtreecommitdiff
path: root/Src/cond.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/cond.c')
-rw-r--r--Src/cond.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/Src/cond.c b/Src/cond.c
index cabe64446..2d073fc46 100644
--- a/Src/cond.c
+++ b/Src/cond.c
@@ -182,16 +182,16 @@ evalcond(Estate state, char *fromtest)
}
if (tracingcond) {
if (ctype < COND_MOD) {
- char *rt = (char *) right;
- if (ctype == COND_STREQ || ctype == COND_STRNEQ) {
- rt = dupstring(ecrawstr(state->prog, state->pc, NULL));
- singsub(&rt);
- untokenize(rt);
- }
fputc(' ',xtrerr);
quotedzputs(left, xtrerr);
fprintf(xtrerr, " %s ", condstr[ctype]);
- quotedzputs(rt, xtrerr);
+ if (ctype == COND_STREQ || ctype == COND_STRNEQ) {
+ char *rt = dupstring(ecrawstr(state->prog, state->pc, NULL));
+ singsub(&rt);
+ quote_tokenized_output(rt, xtrerr);
+ }
+ else
+ quotedzputs((char *)right, xtrerr);
} else {
fprintf(xtrerr, " -%c ", ctype);
quotedzputs(left, xtrerr);