Skip to content

Commit 07db565

Browse files
committed
COMMON: mid and replace performance
1 parent 7c2637f commit 07db565

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/common/proc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -494,9 +494,9 @@ var_t *par_next_str(var_t *arg, int sep) {
494494
} else {
495495
eval(arg);
496496
result = arg;
497-
}
498-
if (result && result->type != V_STR) {
499-
err_syntax(-1, "%S");
497+
if (result->type != V_STR) {
498+
v_tostr(arg);
499+
}
500500
}
501501
if (!prog_error && (sep || code_peek() == kwTYPE_SEP)) {
502502
par_getcomma();

0 commit comments

Comments
 (0)