From: Max Kellermann Date: Fri, 3 Oct 2008 12:26:00 +0000 (+0200) Subject: options: don't initialize with memset(0) X-Git-Tag: v0.12_alpha1~83 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=98e5157bc23dcc95cd65a1858075ed47e657f2c1;hp=7e81521772240ec3567a1773d2919a3e90d104c7;p=ncmpc.git options: don't initialize with memset(0) Global variables are already initialized with zero when the program starts, don't memset(0) again. --- diff --git a/src/options.c b/src/options.c index 53f54b7..8f24e10 100644 --- a/src/options.c +++ b/src/options.c @@ -318,8 +318,6 @@ options_init(void) const char *value; char *tmp; - memset(&options, 0, sizeof(options_t)); - /* get initial values for host and password from MPD_HOST (enviroment) */ if ((value = g_getenv(MPD_HOST_ENV))) options.host = g_strdup(value);