summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/users.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 550f7cf29..c666fd7bd 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -281,8 +281,7 @@ userrec::userrec(InspIRCd* Instance) : ServerInstance(Instance)
for (unsigned int n = 0; n < MAXCHANS; n++)
{
- ucrec* x = new ucrec();
- chans[n] = x;
+ chans[n] = new ucrec();
x->channel = NULL;
x->uc_modes = 0;
}