diff options
| author | Adam <Adam@anope.org> | 2010-12-07 17:01:58 -0500 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2010-12-07 17:01:58 -0500 |
| commit | 2b7dd6c2a023186aefe12eaee7d33595379bf4c5 (patch) | |
| tree | 712274ce279d5a8fc08cd6538fbe2fbbf2f3ad52 /src/modules | |
| parent | c5fc11f5fe92b31200dc6cf542514b1ffeb70c44 (diff) | |
Fixed some warnings found by cppcheck
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/extra/atheme2anope/atheme2anope.c | 2 | ||||
| -rw-r--r-- | src/modules/ns_noop_convert.c | 1 |
2 files changed, 2 insertions, 1 deletions
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; diff --git a/src/modules/ns_noop_convert.c b/src/modules/ns_noop_convert.c index 24abd0bb7..50c0d4021 100644 --- a/src/modules/ns_noop_convert.c +++ b/src/modules/ns_noop_convert.c @@ -127,6 +127,7 @@ int mLoadData(void) free(name); } } + fclose(in); } return ret; } |
