Commit f68c073e authored by Matthias Clasen's avatar Matthias Clasen

Remove a redundant NULL check

parent 32f0761d
......@@ -178,8 +178,7 @@ gtk_printer_option_set (GtkPrinterOption *option,
return;
if ((option->type == GTK_PRINTER_OPTION_TYPE_PICKONE ||
option->type == GTK_PRINTER_OPTION_TYPE_ALTERNATIVE) &&
value != NULL)
option->type == GTK_PRINTER_OPTION_TYPE_ALTERNATIVE))
{
int i;
......@@ -195,7 +194,7 @@ gtk_printer_option_set (GtkPrinterOption *option,
if (i == option->num_choices)
return; /* Not found in available choices */
}
g_free (option->value);
option->value = g_strdup (value);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment