diff options
author | Max Kellermann <max@duempel.org> | 2008-10-02 16:15:56 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-02 16:15:56 +0200 |
commit | b543b982624593ab767d0734b08d053662434380 (patch) | |
tree | ad487ad3058b36c92d646b957d1304963e78a42e /src/options.c | |
parent | 36470979d9f3518217fc26987558dafb3ab36f5c (diff) | |
download | mpd-b543b982624593ab767d0734b08d053662434380.tar.gz mpd-b543b982624593ab767d0734b08d053662434380.tar.xz mpd-b543b982624593ab767d0734b08d053662434380.zip |
options: initialize options.list_format
Instead of checking whether options.list_format is set in the
LIST_FORMAT macro, initialize it once with options.list_format. Same
for options.status_format / STATUS_FORMAT.
Diffstat (limited to 'src/options.c')
-rw-r--r-- | src/options.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/options.c b/src/options.c index 5b2b47c47..f6e206aea 100644 --- a/src/options.c +++ b/src/options.c @@ -333,6 +333,8 @@ options_init( void ) options.port = DEFAULT_PORT; /* default option values */ + options.list_format = g_strdup(DEFAULT_LIST_FORMAT); + options.status_format = g_strdup(DEFAULT_STATUS_FORMAT); options.reconnect = TRUE; options.find_wrap = TRUE; options.wide_cursor = TRUE; |