check control before using it

This commit is contained in:
matthias.ringwald 2011-01-12 19:36:27 +00:00
parent 6ad890d319
commit c30257d4f4

View File

@ -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);
}