[Xfce4-commits] [xfce/xfce4-settings] 01/01: Make sure icon == NULL if no icon is found

noreply at xfce.org noreply at xfce.org
Wed Mar 4 11:03:55 CET 2015


This is an automated email from the git hooks/post-receive script.

ochosi pushed a commit to branch master
in repository xfce/xfce4-settings.

commit b2c3df6015d2ab1b57e2532b05298803b28f2902
Author: Peter de Ridder <peter at xfce.org>
Date:   Wed Mar 4 11:03:28 2015 +0100

    Make sure icon == NULL if no icon is found
---
 dialogs/appearance-settings/main.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/dialogs/appearance-settings/main.c b/dialogs/appearance-settings/main.c
index 3eeb348..6532182 100644
--- a/dialogs/appearance-settings/main.c
+++ b/dialogs/appearance-settings/main.c
@@ -720,6 +720,7 @@ appearance_settings_load_icon_themes (preview_data *pd)
 
                     for (p = 0; p < 4; p++)
                     {
+                        icon = NULL;
                         if (gtk_icon_theme_has_icon (icon_theme, preview_icons[p]))
                             icon = gtk_icon_theme_load_icon (icon_theme, preview_icons[p], 16, 0, NULL);
                         else if (gtk_icon_theme_has_icon (icon_theme, "image-missing"))

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list