/pidgin/main: af2cf9f44c43: Remove unneeded checks. These are do...
Mark Doliner
mark at kingant.net
Tue Jan 28 10:38:15 EST 2014
Changeset: af2cf9f44c43be051c466eba348a05b07a9f91f6
Author: Mark Doliner <mark at kingant.net>
Date: 2014-01-20 09:16 -0800
Branch: release-2.x.y
URL: https://hg.pidgin.im/pidgin/main/rev/af2cf9f44c43
Description:
Remove unneeded checks. These are done by parse.c.
diffstat:
libpurple/protocols/irc/msgs.c | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
diffs (25 lines):
diff --git a/libpurple/protocols/irc/msgs.c b/libpurple/protocols/irc/msgs.c
--- a/libpurple/protocols/irc/msgs.c
+++ b/libpurple/protocols/irc/msgs.c
@@ -271,7 +271,6 @@ void irc_msg_ban(struct irc_conn *irc, c
if (!strcmp(name, "367")) {
char *msg = NULL;
/* Ban list entry */
- g_return_if_fail(args[2]);
if (args[3] && args[4]) {
/* This is an extended syntax, not in RFC 1459 */
int t1 = atoi(args[4]);
@@ -570,13 +569,9 @@ void irc_msg_topic(struct irc_conn *irc,
PurpleConversation *convo;
if (!strcmp(name, "topic")) {
- g_return_if_fail(args[0]);
- g_return_if_fail(args[1]);
chan = args[0];
topic = irc_mirc2txt (args[1]);
} else {
- g_return_if_fail(args[1]);
- g_return_if_fail(args[2]);
chan = args[1];
topic = irc_mirc2txt (args[2]);
}
More information about the Commits
mailing list