summaryrefslogtreecommitdiff
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
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
-rw-r--r--src/nickserv.c2
-rw-r--r--version.log7
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*