changeset 20804:9e51721a23c7

Resolve CID 364: 'Pointer returned from "g_hash_table_lookup" is never used'
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 10 Oct 2007 00:47:28 +0000
parents 371f590b9657
children e0ce7124d2d4
files finch/libgnt/gntwm.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/finch/libgnt/gntwm.c	Sat Oct 06 21:22:19 2007 +0000
+++ b/finch/libgnt/gntwm.c	Wed Oct 10 00:47:28 2007 +0000
@@ -1717,12 +1717,11 @@
 void gnt_wm_window_close(GntWM *wm, GntWidget *widget)
 {
 	GntWS *s;
-	GntNode *node;
 	int pos;
 
 	s = gnt_wm_widget_find_workspace(wm, widget);
 
-	if ((node = g_hash_table_lookup(wm->nodes, widget)) == NULL)
+	if (g_hash_table_lookup(wm->nodes, widget) == NULL)
 		return;
 
 	g_signal_emit(wm, signals[SIG_CLOSE_WIN], 0, widget);