[gtk+/rendering-cleanup-next: 143/199] iconfactory: Initialize varibale to NULL in failure path
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/rendering-cleanup-next: 143/199] iconfactory: Initialize varibale to NULL in failure path
- Date: Thu, 23 Sep 2010 21:31:07 +0000 (UTC)
commit 4c4f92086201f31e05a405d53d945336ea73ad53
Author: Benjamin Otte <otte redhat com>
Date: Thu Sep 9 23:09:07 2010 +0200
iconfactory: Initialize varibale to NULL in failure path
Otherwise we use random memory and that is not good.
gtk/gtkiconfactory.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkiconfactory.c b/gtk/gtkiconfactory.c
index 4f854d8..92fea10 100644
--- a/gtk/gtkiconfactory.c
+++ b/gtk/gtkiconfactory.c
@@ -1463,6 +1463,8 @@ render_icon_name_pixbuf (GtkIconSource *icon_source,
tmp_pixbuf = gtk_icon_info_load_icon (info, &error);
gtk_icon_info_free (info);
}
+ else
+ tmp_pixbuf = NULL;
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]