]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
cvar: Don't memset cvar->aliases before it's even allocated
authorCloudwalk <cloudwalk009@gmail.com>
Sat, 29 May 2021 18:13:00 +0000 (14:13 -0400)
committerCloudwalk <cloudwalk009@gmail.com>
Sat, 29 May 2021 18:13:00 +0000 (14:13 -0400)
cvar.c

diff --git a/cvar.c b/cvar.c
index 344512d0946f6b1bce6ff8666f648f42ae687791..58562d6b642742e911d879ddc0fdc55dd50af0c4 100644 (file)
--- a/cvar.c
+++ b/cvar.c
@@ -731,7 +731,6 @@ cvar_t *Cvar_Get(cvar_state_t *cvars, const char *name, const char *value, int f
        cvar->aliases = NULL;
        cvar->aliases_size = 0;
        cvar->initstate = NULL;
-       memset(cvar->aliases, 0, sizeof(char *));
 
        if(newdescription && *newdescription)
                cvar->description = (char *)Mem_strdup(zonemempool, newdescription);