summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dix/extension.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dix/extension.c b/dix/extension.c
index 186574d76..4c0c3d236 100644
--- a/dix/extension.c
+++ b/dix/extension.c
@@ -184,6 +184,8 @@ _X_EXPORT Bool AddExtensionAlias(char *alias, ExtensionEntry *ext)
char *name;
char **aliases;
+ if (!ext)
+ return FALSE ;
aliases = (char **)xrealloc(ext->aliases,
(ext->num_aliases + 1) * sizeof(char *));
if (!aliases)