Skip to content

Commit 662c451

Browse files
committed
Remove unnecessary memset
1 parent 193ffc6 commit 662c451

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

source/engine/console.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,6 @@ const char *getprefix(int type)
5050

5151
void conline(int type, const char *sf) // add a line to the console buffer
5252
{
53-
if(!conlines.length())
54-
{
55-
// initialize the queue with zeroes
56-
memset(conlines.data, 0, MAXCONLINES * sizeof(cline));
57-
}
5853
char *buf = NULL;
5954
if(type&CON_TAG_MASK) for(int i = conlines.length()-1; i >= max(conlines.length()-contags, 0); i--)
6055
{

0 commit comments

Comments
 (0)