aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2015-03-27 06:32:13 +0300
committerArnold D. Robbins <arnold@skeeve.com>2015-03-27 06:32:13 +0300
commit9d43b510f74f63806279ce40f65245ea7e5b0d53 (patch)
tree9ca3e70190325400684cfde33946017a0de334a8 /io.c
parentbc1c92f4a9365f799c9c7a78b41a4eb1c40326b7 (diff)
downloadegawk-9d43b510f74f63806279ce40f65245ea7e5b0d53.tar.gz
egawk-9d43b510f74f63806279ce40f65245ea7e5b0d53.tar.bz2
egawk-9d43b510f74f63806279ce40f65245ea7e5b0d53.zip
Some more cleanups. Ready to merge!
Diffstat (limited to 'io.c')
-rw-r--r--io.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/io.c b/io.c
index 4dbe16fb..cf9dd943 100644
--- a/io.c
+++ b/io.c
@@ -1070,7 +1070,8 @@ redirect_string(const char *str, size_t explen, bool not_string,
struct redirect *
redirect(NODE *redir_exp, int redirtype, int *errflg, bool failure_fatal)
{
- int not_string = ((redir_exp->flags & STRCUR) == 0);
+ bool not_string = ((redir_exp->flags & STRCUR) == 0);
+
redir_exp = force_string(redir_exp);
return redirect_string(redir_exp->stptr, redir_exp->stlen, not_string,
redirtype, errflg, -1, failure_fatal);