From c30257d4f47948e0db129b09699ea4e8f95e8f1e Mon Sep 17 00:00:00 2001 From: "matthias.ringwald" Date: Wed, 12 Jan 2011 19:36:27 +0000 Subject: [PATCH] check control before using it --- src/daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/daemon.c b/src/daemon.c index 698f1b097..90d4ae1ab 100644 --- a/src/daemon.c +++ b/src/daemon.c @@ -462,7 +462,7 @@ int main (int argc, char * const * argv){ #endif // init power management notifications - if (control->register_for_power_notifications){ + if (control && control->register_for_power_notifications){ control->register_for_power_notifications(power_notification_callback); }