From: Cloudwalk Date: Sat, 29 May 2021 18:13:00 +0000 (-0400) Subject: cvar: Don't memset cvar->aliases before it's even allocated X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8d2492ac4364e1a51e7f84c6ea1c34429f060939;p=xonotic%2Fdarkplaces.git cvar: Don't memset cvar->aliases before it's even allocated --- diff --git a/cvar.c b/cvar.c index 344512d0..58562d6b 100644 --- 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);