summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2013-03-01 19:13:30 -0500
committerMatthias Clasen <mclasen@redhat.com>2013-03-01 19:13:30 -0500
commit9d36dbb44ba14adeb29135de01a936eb623375f2 (patch)
tree221bbedd3b9ef289c423231b31497b1457d83b0e /modules
parent50065b7ba07fe08f5c71e42101fedf5b6e810982 (diff)
downloadgtk+-9d36dbb44ba14adeb29135de01a936eb623375f2.tar.gz
Revert "Fix gtkprintbackendcups crash"
This reverts commit 54ffc982e96bc4b2484a2611c7dc5cf24c4c4a1a. I've undone the GList behaviour change instead.
Diffstat (limited to 'modules')
-rw-r--r--modules/printbackends/cups/gtkprintbackendcups.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/modules/printbackends/cups/gtkprintbackendcups.c b/modules/printbackends/cups/gtkprintbackendcups.c
index 8dbc78bf89..96f4be4103 100644
--- a/modules/printbackends/cups/gtkprintbackendcups.c
+++ b/modules/printbackends/cups/gtkprintbackendcups.c
@@ -2067,15 +2067,11 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
}
/* remove name from checklist if it was found */
- if (removed_printer_checklist != NULL)
- {
- if (node = g_list_find_custom (removed_printer_checklist,
- info->printer_name,
- (GCompareFunc) find_printer))
- removed_printer_checklist =
- g_list_delete_link (removed_printer_checklist,
- node);
- }
+ node = g_list_find_custom (removed_printer_checklist,
+ info->printer_name,
+ (GCompareFunc) find_printer);
+ removed_printer_checklist = g_list_delete_link (removed_printer_checklist,
+ node);
printer = gtk_print_backend_find_printer (backend, info->printer_name);
if (!printer)