GNOME Bugzilla – Bug 751095
power: Fix possible crash if up_client_get_devices() fails
Last modified: 2015-06-29 15:50:38 UTC
.
Created attachment 305462 [details] [review] power: Fix possible crash if up_client_get_devices() fails up_client_get_devices() can fail if upower crashes or isn't available. Make sure not to crash ourselves by handling NULL return values as we do later in the loop. See https://bugzilla.redhat.com/show_bug.cgi?id=1175421
Review of attachment 305462 [details] [review]: Looks fine, thanks.
Attachment 305462 [details] pushed as d2c0b66 - power: Fix possible crash if up_client_get_devices() fails