[gtksourceview] Avoid unneeded dereference
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] Avoid unneeded dereference
- Date: Sat, 10 Jul 2010 09:11:56 +0000 (UTC)
commit e3d26058fb6b660d42a618ae26124cbd1eec0918
Author: Paolo Borelli <pborelli gnome org>
Date: Sat Jul 10 10:01:21 2010 +0200
Avoid unneeded dereference
gtksourceview/gtksourcecontextengine.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtksourceview/gtksourcecontextengine.c b/gtksourceview/gtksourcecontextengine.c
index e18b0c1..26c79e4 100644
--- a/gtksourceview/gtksourcecontextengine.c
+++ b/gtksourceview/gtksourcecontextengine.c
@@ -3705,7 +3705,7 @@ context_remove_child (Context *parent,
g_assert (context->parent == parent);
- for (ptr = context->parent->children; ptr; ptr = ptr->next)
+ for (ptr = parent->children; ptr; ptr = ptr->next)
{
if (ptr->definition == context->definition)
break;
@@ -3729,7 +3729,7 @@ context_remove_child (Context *parent,
if (prev != NULL)
prev->next = ptr->next;
else
- context->parent->children = ptr->next;
+ parent->children = ptr->next;
if (!ptr->fixed)
g_hash_table_destroy (ptr->u.hash);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]