Minor fix to end-of-index processing of let command

This commit is contained in:
Jim Monte 2019-12-23 22:42:01 -05:00
parent 6eac11db97
commit e32991ae7a
1 changed files with 3 additions and 2 deletions

View File

@ -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;
}