[gtk+] Bug 658398 - Use of uninitialized variable reported by Valgrind
- From: Behdad Esfahbod <behdad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Bug 658398 - Use of uninitialized variable reported by Valgrind
- Date: Wed, 7 Sep 2011 20:19:58 +0000 (UTC)
commit 057a50d58e940056c6f5407812a67405308aa983
Author: Behdad Esfahbod <behdad behdad org>
Date: Wed Sep 7 16:19:44 2011 -0400
Bug 658398 - Use of uninitialized variable reported by Valgrind
Fix it.
gtk/gtkselection.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkselection.c b/gtk/gtkselection.c
index 7fbc996..9e2295f 100644
--- a/gtk/gtkselection.c
+++ b/gtk/gtkselection.c
@@ -1097,11 +1097,10 @@ gtk_selection_convert (GtkWidget *widget,
{
GtkWidget *owner_widget;
gpointer owner_widget_ptr;
- GtkSelectionData selection_data;
+ GtkSelectionData selection_data = {0};
selection_data.selection = selection;
selection_data.target = target;
- selection_data.data = NULL;
selection_data.length = -1;
selection_data.display = display;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]