cvar: Don't memset cvar->aliases before it's even allocated
[xonotic/darkplaces.git] / 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);