[PATCH 1/3] Small fix for a possible crash in divelist.c

Lubomir I. Ivanov neolit123 at gmail.com
Fri Jan 25 06:55:53 PST 2013


From: "Lubomir I. Ivanov" <neolit123 at gmail.com>

divelist.c:copy_tree_node():
pass the pointer "icon" to gtk_tree_store_set()

Signed-off-by: Lubomir I. Ivanov <neolit123 at gmail.com>
---
 divelist.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/divelist.c b/divelist.c
index f9ca3ef..8b86c53 100644
--- a/divelist.c
+++ b/divelist.c
@@ -1776,7 +1776,7 @@ static int copy_tree_node(GtkTreeIter *a, GtkTreeIter *b)
 		DIVE_OTU, store_dive.otu,
 		DIVE_MAXCNS, store_dive.maxcns,
 		DIVE_LOCATION, store_dive.location,
-		DIVE_LOC_ICON, &icon,
+		DIVE_LOC_ICON, icon,
 		-1);
 	free(cylinder_text);
 	free(store_dive.location);
-- 
1.7.11.msysgit.0



More information about the subsurface mailing list