summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-10-10 10:37:08 +0000
committerrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-10-10 10:37:08 +0000
commitce4151b462da665bec2d1ea81b533949840340b5 (patch)
treefc8b3ed62ceac6c4fb2e4159df8fb867e984f2c8 /src
parent3f487b80d96df7e72d05d8d56b89273f89fb738c (diff)
BUILD : 1.7.5 (385) BUGS : N/A NOTES : Moved more veriable declarations above the new null checking code
git-svn-id: svn://svn.anope.org/anope/trunk@385 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@254 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r--src/nickserv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nickserv.c b/src/nickserv.c
index befa2c1d4..44a4e1bb6 100644
--- a/src/nickserv.c
+++ b/src/nickserv.c
@@ -1415,6 +1415,7 @@ void insert_core(NickCore * nc)
/*************************************************************************/
void insert_requestnick(NickRequest * nr)
{
+ int index = HASH(nr->nick);
if (!nr) {
if (debug) {
alog("debug: insert_requestnick called with NULL values");
@@ -1422,7 +1423,6 @@ void insert_requestnick(NickRequest * nr)
return;
}
- int index = HASH(nr->nick);
nr->prev = NULL;
nr->next = nrlists[index];