about summary refs log tree commit diff
path: root/Src/module.c
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2015-01-06 12:12:49 +0100
committerMikael Magnusson <mikachu@gmail.com>2015-01-06 23:51:19 +0100
commit8fea30a5719946c9164352501caaa2d057e1dbc6 (patch)
tree856515579a20af1f9a9ff025c84ac4bf293e07c1 /Src/module.c
parent4701b05cf760fddeee4b203f04130540f2d903a8 (diff)
downloadzsh-8fea30a5719946c9164352501caaa2d057e1dbc6.tar.gz
zsh-8fea30a5719946c9164352501caaa2d057e1dbc6.tar.xz
zsh-8fea30a5719946c9164352501caaa2d057e1dbc6.zip
34122: module: allow NULL third argument as intended
Found by Coverity.
Diffstat (limited to 'Src/module.c')
-rw-r--r--Src/module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/module.c b/Src/module.c
index 9e8b3cc2a..bcc0ba833 100644
--- a/Src/module.c
+++ b/Src/module.c
@@ -3367,7 +3367,7 @@ mod_export int
 handlefeatures(Module m, Features f, int **enables)
 {
     if (!enables || *enables)
-	return setfeatureenables(m, f, *enables);
+	return setfeatureenables(m, f, enables ? *enables : NULL);
     *enables = getfeatureenables(m, f);
     return 0;
 }