From ce4151b462da665bec2d1ea81b533949840340b5 Mon Sep 17 00:00:00 2001 From: "rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Sun, 10 Oct 2004 10:37:08 +0000 Subject: [PATCH] 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 --- src/nickserv.c | 2 +- version.log | 7 ++++++- 2 files changed, 7 insertions(+), 2 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]; diff --git a/version.log b/version.log index 0779e74e8..abf533794 100644 --- a/version.log +++ b/version.log @@ -8,10 +8,15 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="5" -VERSION_BUILD="384" +VERSION_BUILD="385" # $Log$ # +# BUILD : 1.7.5 (385) +# BUGS : N/A +# NOTES : Moved more veriable declarations above the new null checking code +# +# # BUILD : 1.7.5 (384) # BUGS : N/A # NOTES : Moved veriable declaration to the top of function - btw, are all these null checks needed? createCommand should never be passed NULL values, its a wasted if imho... *shrug*