libubus: Check if remove callback exists before call it
authorLukasz Baj <l.baj@radytek.com>
Thu, 29 Aug 2013 09:05:51 +0000 (11:05 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 29 Aug 2013 18:35:38 +0000 (20:35 +0200)
commitd486006ab93f128392417b06a9e0226e571fc302
tree266ad25a26a43c44f225b8cc1ead692ad87d55cb
parentb20a8a01c7faea5bcc9d34d10dcf7736589021b8
libubus: Check if remove callback exists before call it

When process unsubscribes then remove callback is called. But it
can be NULL if not defined, so we should check it before we call it.

Signed-off-by: Lukasz Baj <l.baj@radytek.com>
libubus-obj.c