summaryrefslogtreecommitdiff
path: root/plugin.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2013-03-05 16:40:45 +0100
committerJo-Philipp Wich <jow@openwrt.org>2013-03-05 16:40:45 +0100
commitbd273366d92472c9af07bf227c3c2bbd530b25f6 (patch)
tree6865ed78a50ae6e46e400a2caecdb860c3f2b79c /plugin.c
parentd241c560bf2cd84a4cb497eaa3fe131a7c193293 (diff)
plugin.c: don't assume post_init callback to exist
Diffstat (limited to 'plugin.c')
-rw-r--r--plugin.c3
1 files changed, 2 insertions, 1 deletions
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();
}