From 98e5157bc23dcc95cd65a1858075ed47e657f2c1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 3 Oct 2008 14:26:00 +0200 Subject: [PATCH] options: don't initialize with memset(0) Global variables are already initialized with zero when the program starts, don't memset(0) again. --- src/options.c | 2 -- 1 file changed, 2 deletions(-) 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); -- 2.30.2