[graph-gtk] Fixed misuse of GList which was causing segfaults
- From: Isaac Wagner <isaacbw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [graph-gtk] Fixed misuse of GList which was causing segfaults
- Date: Tue, 31 Jul 2012 14:40:13 +0000 (UTC)
commit a0edf55d3295afbf1d56c959402a567378a1e0ff
Author: Isaac Wagner <isaacbw src gnome org>
Date: Tue Jul 31 10:39:58 2012 -0400
Fixed misuse of GList which was causing segfaults
graph-gtk/graph-gtk-node.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/graph-gtk/graph-gtk-node.c b/graph-gtk/graph-gtk-node.c
index dff8736..0a9147b 100644
--- a/graph-gtk/graph-gtk-node.c
+++ b/graph-gtk/graph-gtk-node.c
@@ -337,7 +337,7 @@ graph_gtk_node_connect_to(GraphGtkNode* source, const gchar* output_pad, GraphGt
GraphGtkPad *source_pad = NULL, *sink_pad = NULL;
GList* list;
- for(list = graph_gtk_node_get_pads(source); list != NULL; list++)
+ for(list = graph_gtk_node_get_pads(source); list != NULL; list = list->next)
{
GraphGtkPad *pad = (GraphGtkPad*)list->data;
if(0 == g_strcmp0(pad->name, output_pad))
@@ -347,7 +347,7 @@ graph_gtk_node_connect_to(GraphGtkNode* source, const gchar* output_pad, GraphGt
}
}
- for(list = graph_gtk_node_get_pads(sink); list != NULL; list++)
+ for(list = graph_gtk_node_get_pads(sink); list != NULL; list = list->next)
{
GraphGtkPad *pad = (GraphGtkPad*)list->data;
if(0 == g_strcmp0(pad->name, input_pad))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]