From bd273366d92472c9af07bf227c3c2bbd530b25f6 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 5 Mar 2013 16:40:45 +0100 Subject: [PATCH 1/1] plugin.c: don't assume post_init callback to exist --- plugin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin.c b/plugin.c index cd4831e..4315da2 100644 --- 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) - p->post_init(); + if (p->post_init) + p->post_init(); } -- 2.11.0