aboutsummaryrefslogtreecommitdiffstats
path: root/gawkapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'gawkapi.c')
-rw-r--r--gawkapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gawkapi.c b/gawkapi.c
index 01ccdf2b..9d8c6f36 100644
--- a/gawkapi.c
+++ b/gawkapi.c
@@ -1065,8 +1065,8 @@ api_get_file(awk_ext_id_t id, const char *name, size_t namelen, const char *file
save_rule = currule;
save_source = source;
- while (1) {
- if (!pc)
+ for (;;) {
+ if (pc == NULL)
fatal(_("cannot find end of BEGINFILE rule"));
if (pc->opcode == Op_after_beginfile)
break;