Skip to content

Commit

Permalink
gcc picked up error - returns string, not char
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Apr 12, 2019
1 parent 1ab8a65 commit 920ca5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion expand.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ char *src;

if (mod & JUST_FIRST_FLAG) {
SET_TOKEN(&str, src);
if ((s = Get_token(&str,"",FALSE)) != '\0') {
if (*(s = Get_token(&str,"",FALSE)) != '\0') {
/* Recycle the quote at the beginning. */
if(str.tk_quote == 0) {
s--;
Expand Down

0 comments on commit 920ca5e

Please sign in to comment.