[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FIX: net/irssi



This patch fixes a crash, when the user tries to
use "/set -default". Fixed in irssi-current too.

Regards
-- 
Robert Nagy <thuglife_(_at_)_bsd_(_dot_)_hu>
http://thuglife.frontember.hu
Index: patches/patch-src_fe_common_core_fe_settings_c
===================================================================
RCS file: patch-src_fe_common_core_fe_settings_c
diff -N patch-src_fe_common_core_fe_settings_c
--- /dev/null	Mon Nov  3 01:42:15 1997
+++ patches/patch-src_fe_common_core_fe_settings_c	Wed Mar  3 14:19:49 2004
@@ -0,0 +1,14 @@
+$OpenBSD$
+--- src/fe-common/core/fe-settings.c.orig	Wed Mar  3 15:15:39 2004
++++ src/fe-common/core/fe-settings.c	Wed Mar  3 15:16:47 2004
+@@ -83,6 +83,10 @@
+ 			    "set", &optlist, &key, &value))
+ 		return;
+ 
++	if (*key == '\0') {
++		cmd_params_free(free_arg);
++		return;
++	}
+ 	clear = g_hash_table_lookup(optlist, "clear") != NULL;
+ 	set_default = g_hash_table_lookup(optlist, "default") != NULL;
+