File powerprefs-segfault.patch of Package powerprefs

--- src/taghandler.c
+++ src/taghandler.c
@@ -98,7 +98,8 @@
 		if (g_slist_length(radiolist) > data) {
 			for(n=g_slist_length(radiolist)-1; n > data; n--)
 				radiolist = g_slist_next(radiolist);
-			gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON (radiolist->data), TRUE);
+			if (radiolist)
+				gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON (radiolist->data), TRUE);
 		}
 	} else {
 		radiolist = gtk_radio_button_get_group (GTK_RADIO_BUTTON(widget));
openSUSE Build Service is sponsored by