[ekg2-commit] r3743 - trunk/plugins/ncurses: trunk/plugins/ncurses/old.c

SVN commit svn w toxygen.net
Śro, 6 Lut 2008, 02:10:01 CET


Author: darkjames
Date: 2008-02-06 02:10:01 +0100 (Wed, 06 Feb 2008)
New Revision: 3743

Modified:
   trunk/plugins/ncurses/old.c
Log:
- use t1, instead of tmp.


Modified: trunk/plugins/ncurses/old.c
===================================================================
--- trunk/plugins/ncurses/old.c	2008-02-05 20:49:34 UTC (rev 3742)
+++ trunk/plugins/ncurses/old.c	2008-02-06 01:10:01 UTC (rev 3743)
@@ -1558,14 +1558,13 @@
 		__add_format_dup("mail", (mail_count > 0), itoa(mail_count));
 	}
 	if (session_check(window_current->session, 1, "irc") && (plug = plugin_find(("irc")))) {
-		/* yeah, I know, shitty way */
+		char *t1 = NULL;
 		char *t2 = NULL;
 		char *t3 = NULL; 
-		query_emit_id(plug, IRC_TOPIC, &tmp, &t2, &t3);
-		__add_format("irctopic", tmp);
+		query_emit_id(plug, IRC_TOPIC, &t1, &t2, &t3);
+		__add_format("irctopic", t1);
 		__add_format("irctopicby", t2);
 		__add_format("ircmode", t3);
-		tmp = NULL;
 	}
 
 	{



Więcej informacji o liście dyskusyjnej ekg2-commit