plugin.c: don't assume post_init callback to exist
[project/uhttpd.git] / plugin.c
index cd4831e..4315da2 100644 (file)
--- a/plugin.c
+++ b/plugin.c
@@ -65,5 +65,6 @@ void uh_plugin_post_init(void)
        struct uhttpd_plugin *p;
 
        list_for_each_entry(p, &plugins, list)
        struct uhttpd_plugin *p;
 
        list_for_each_entry(p, &plugins, list)
-               p->post_init();
+               if (p->post_init)
+                       p->post_init();
 }
 }