summaryrefslogtreecommitdiff
path: root/dix/extension.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2008-07-24 09:13:26 -0400
committerAdam Jackson <ajax@redhat.com>2008-07-24 15:46:08 -0400
commit6bcde69585fcc8f8dbfe81c115649f19274922fa (patch)
tree4b14efd7141f2d2b339d8340c1abf65dcbb77ce5 /dix/extension.c
parentf65c50c4e902c7b5619fb7bbee8462434d809ec7 (diff)
Allow extension closedown hook to be null.
Diffstat (limited to 'dix/extension.c')
-rw-r--r--dix/extension.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dix/extension.c b/dix/extension.c
index 9740c1b50..5dbdb956d 100644
--- a/dix/extension.c
+++ b/dix/extension.c
@@ -247,7 +247,8 @@ CloseDownExtensions(void)
for (i = NumExtensions - 1; i >= 0; i--)
{
- (* extensions[i]->CloseDown)(extensions[i]);
+ if (extensions[i]->CloseDown)
+ extensions[i]->CloseDown(extensions[i]);
NumExtensions = i;
xfree(extensions[i]->name);
for (j = extensions[i]->num_aliases; --j >= 0;)