aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--e-util/e-stock-request.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/e-util/e-stock-request.c b/e-util/e-stock-request.c
index ef556312ce..9ee06e911e 100644
--- a/e-util/e-stock-request.c
+++ b/e-util/e-stock-request.c
@@ -68,15 +68,14 @@ handle_stock_request (GSimpleAsyncResult *res,
if (query) {
a_size = g_hash_table_lookup (query, "size");
+ if (a_size) {
+ size = atoi (a_size);
+ } else {
+ size = GTK_ICON_SIZE_BUTTON;
+ }
g_hash_table_destroy (query);
} else {
- a_size = NULL;
- }
-
- if (!a_size) {
size = GTK_ICON_SIZE_BUTTON;
- } else {
- size = atoi (a_size);
}
/* Try style context first */