summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7e81521)
raw | patch | inline | side by side (parent: 7e81521)
author | Max Kellermann <max@duempel.org> | |
Fri, 3 Oct 2008 12:26:00 +0000 (14:26 +0200) | ||
committer | Max 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.
starts, don't memset(0) again.
src/options.c | patch | blob | history |
diff --git a/src/options.c b/src/options.c
index 53f54b7ebfa099d6edc867ae7180aafdec95bdcd..8f24e107a652e00a958b208c0042df2f4ff90952 100644 (file)
--- a/src/options.c
+++ b/src/options.c
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);