Remove a redundant NULL check
This commit is contained in:
parent
32f0761daa
commit
f68c073e33
@ -178,8 +178,7 @@ gtk_printer_option_set (GtkPrinterOption *option,
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if ((option->type == GTK_PRINTER_OPTION_TYPE_PICKONE ||
|
if ((option->type == GTK_PRINTER_OPTION_TYPE_PICKONE ||
|
||||||
option->type == GTK_PRINTER_OPTION_TYPE_ALTERNATIVE) &&
|
option->type == GTK_PRINTER_OPTION_TYPE_ALTERNATIVE))
|
||||||
value != NULL)
|
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
@ -195,7 +194,7 @@ gtk_printer_option_set (GtkPrinterOption *option,
|
|||||||
if (i == option->num_choices)
|
if (i == option->num_choices)
|
||||||
return; /* Not found in available choices */
|
return; /* Not found in available choices */
|
||||||
}
|
}
|
||||||
|
|
||||||
g_free (option->value);
|
g_free (option->value);
|
||||||
option->value = g_strdup (value);
|
option->value = g_strdup (value);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user