aboutsummaryrefslogtreecommitdiffstats
path: root/ext.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-10-17 12:17:37 +0300
committerArnold D. Robbins <arnold@skeeve.com>2014-10-17 12:17:37 +0300
commit49a291d1713912ffb6801ced6f0c517e430a9a71 (patch)
tree896f6dbbe3415b475a7620a437626b6c2e2bc493 /ext.c
parent92b1be4a48425e584f29e223a56b261dddb4cdd5 (diff)
downloadegawk-49a291d1713912ffb6801ced6f0c517e430a9a71.tar.gz
egawk-49a291d1713912ffb6801ced6f0c517e430a9a71.tar.bz2
egawk-49a291d1713912ffb6801ced6f0c517e430a9a71.zip
VMS build fixes.
Diffstat (limited to 'ext.c')
-rw-r--r--ext.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext.c b/ext.c
index afb8d715..cf813674 100644
--- a/ext.c
+++ b/ext.c
@@ -397,6 +397,9 @@ close_extensions()
{
SRCFILE *s;
+ if (srcfiles == NULL)
+ return;
+
for (s = srcfiles->next; s != srcfiles; s = s->next)
if (s->stype == SRC_EXTLIB && s->fini_func)
(*s->fini_func)();