From 4ffd644a14fa40b758f8937b06844861009bfec1 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 22 Dec 2005 17:18:18 +0000 Subject: Optimized out strcpys that copy empty strings (craq++) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2637 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/channels.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/channels.cpp') diff --git a/src/channels.cpp b/src/channels.cpp index fee297ec8..0201ec7b4 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -217,7 +217,7 @@ chanrec* add_channel(userrec *user, const char* cn, const char* key, bool overri strlcpy(chanlist[cname]->name, cname,CHANMAX); chanlist[cname]->binarymodes = CM_TOPICLOCK | CM_NOEXTERNAL; chanlist[cname]->created = TIME; - strcpy(chanlist[cname]->topic, ""); + *chanlist[cname]->topic = 0; strncpy(chanlist[cname]->setby, user->nick,NICKMAX); chanlist[cname]->topicset = 0; Ptr = chanlist[cname]; -- cgit v1.2.3