From 2b7dd6c2a023186aefe12eaee7d33595379bf4c5 Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 7 Dec 2010 17:01:58 -0500 Subject: Fixed some warnings found by cppcheck --- src/modules/extra/atheme2anope/atheme2anope.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/extra') diff --git a/src/modules/extra/atheme2anope/atheme2anope.c b/src/modules/extra/atheme2anope/atheme2anope.c index 49cbc1b1e..c0b4804ce 100644 --- a/src/modules/extra/atheme2anope/atheme2anope.c +++ b/src/modules/extra/atheme2anope/atheme2anope.c @@ -232,7 +232,7 @@ void WriteNick(char *line) } } } - else if (!strcmp(tok, "SO")) + else if (na && !strcmp(tok, "SO")) { tok = strtok(NULL, " "); na->nc->flags |= NI_SERVICES_OPER; -- cgit