diff options
Diffstat (limited to 'runtime/glbl.c')
-rw-r--r-- | runtime/glbl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/glbl.c b/runtime/glbl.c index 6af38e01..cbb9b20f 100644 --- a/runtime/glbl.c +++ b/runtime/glbl.c @@ -621,7 +621,10 @@ glblProcessMainQCnf(struct cnfobj *o) void glblDestructMainqCnfObj() { - nvlstChkUnused(mainqCnfObj->nvlst); + /* Only destruct if not NULL! */ + if (mainqCnfObj != NULL) { + nvlstChkUnused(mainqCnfObj->nvlst); + } cnfobjDestruct(mainqCnfObj); mainqCnfObj = NULL; } |