Skip to content

Commit

Permalink
Merge branch 'fs-inconsistency' of https://github.com/bsdimp/awk into…
Browse files Browse the repository at this point in the history
… bsdimp-fs-inconsistency
  • Loading branch information
plan9 committed Jul 27, 2021
2 parents aa8731e + 45dab2a commit dfd28d2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,7 @@ setfs(char *p)
/* wart: t=>\t */
if (p[0] == 't' && p[1] == '\0')
return "\t";
else if (p[0] != '\0')
return p;
return NULL;
return p;
}

static char *
Expand Down Expand Up @@ -169,8 +167,6 @@ int main(int argc, char *argv[])
break;
case 'F': /* set field separator */
fs = setfs(getarg(&argc, &argv, "no field separator"));
if (fs == NULL)
WARNING("field separator FS is empty");
break;
case 'v': /* -v a=1 to be done NOW. one -v for each */
vn = getarg(&argc, &argv, "no variable name");
Expand Down

0 comments on commit dfd28d2

Please sign in to comment.