Code

options: don't initialize with memset(0)
authorMax Kellermann <max@duempel.org>
Fri, 3 Oct 2008 12:26:00 +0000 (14:26 +0200)
committerMax Kellermann <max@duempel.org>
Fri, 3 Oct 2008 12:26:00 +0000 (14:26 +0200)
Global variables are already initialized with zero when the program
starts, don't memset(0) again.

src/options.c

index 53f54b7ebfa099d6edc867ae7180aafdec95bdcd..8f24e107a652e00a958b208c0042df2f4ff90952 100644 (file)
@@ -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);