changeset 8712:a4ff6e79c5fc

[gaim-migrate @ 9466] Zephyr is some funky mojo. This fixes https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=121256 At least, it isn't any worse than what we had before and it is more predictable. As to whether there's a bug ... your guess is as good as mine. committer: Tailor Script <tailor@pidgin.im>
author Ethan Blanton <elb@pidgin.im>
date Mon, 19 Apr 2004 20:30:56 +0000
parents 05ed6143ec76
children 7024b595b6ae
files src/protocols/zephyr/zephyr.c
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/zephyr/zephyr.c	Mon Apr 19 15:04:12 2004 +0000
+++ b/src/protocols/zephyr/zephyr.c	Mon Apr 19 20:30:56 2004 +0000
@@ -1038,8 +1038,17 @@
 	gconv1 = gaim_find_conversation_with_account(zt->name, zgc->account);
 	gcc = gaim_conversation_get_chat_data(gconv1);
 
+	/* This patently does not make sense ... if inst is not set by
+	 * gaim_conv_chat_get_topic, we set it to the uninitialized
+	 * value of notice.z_class_inst, only to set notice.z_class_inst
+	 * back to inst in a half a dozen lines.  I'm just going to let
+	 * it remain NULL instead.
+	 * 
 	if (!(inst = (char *)gaim_conv_chat_get_topic(gcc)))
 		inst = (char *)notice.z_class_inst;
+	 */
+	inst = (char *)gaim_conv_chat_get_topic(gcc);
+	/* There, now isn't that better? */
 
 	bzero((char *)&notice, sizeof(notice));
 	notice.z_kind = ACKED;