From e32991ae7aea4e3b63f2a72780c82c08f844b71d Mon Sep 17 00:00:00 2001 From: Jim Monte Date: Mon, 23 Dec 2019 22:42:01 -0500 Subject: [PATCH] Minor fix to end-of-index processing of let command --- src/frontend/com_let.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/frontend/com_let.c b/src/frontend/com_let.c index d1fb41754..2884840fe 100644 --- a/src/frontend/com_let.c +++ b/src/frontend/com_let.c @@ -312,9 +312,10 @@ static int find_indices(char *s, index_range_t *p_index, int *p_n_index) s = p_end + 1; /* Only white space is allowed after closing brace */ - if ((s = skip_ws(s)) != '\0') { + if (*(s = skip_ws(s)) != '\0') { (void) fprintf(cp_err, "Invalid text was found " - "after dimension data for vector.\n"); + "after dimension data for vector: \"%s\".\n", + s); return -1; }