summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2012-07-29 16:36:40 +0300
committerArnold D. Robbins <arnold@skeeve.com>2012-07-29 16:36:40 +0300
commit7a7aff46c959aa4f2f885fa52b93137e409aa6b9 (patch)
tree5c42448510c6c273335ad9ece8a0da5961967a38 /io.c
parent82816b279615b27f7c4f87349a8c830a96939d8c (diff)
parenta02d28a4829917a98c6620f4f14864b68d707d41 (diff)
downloadgawk-7a7aff46c959aa4f2f885fa52b93137e409aa6b9.tar.gz
Merge branch 'extgawk' of ssh://git.sv.gnu.org/srv/git/gawk into extgawk
Diffstat (limited to 'io.c')
-rw-r--r--io.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/io.c b/io.c
index fdcf6b7b..57cdb581 100644
--- a/io.c
+++ b/io.c
@@ -2644,8 +2644,11 @@ find_input_parser(IOBUF *iop)
}
}
- if (ip != NULL)
- ip->take_control_of(& iop->public);
+ if (ip != NULL) {
+ if (! ip->take_control_of(& iop->public))
+ warning(_("input parser `%s' failed to open `%s'."),
+ ip->name, iop->public.name);
+ }
}
/* iop_alloc --- allocate an IOBUF structure for an open fd */