aboutsummaryrefslogtreecommitdiffstats
path: root/src/ls.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-03-26 10:37:36 +0000
committerEric Wong <normalperson@yhbt.net>2008-03-26 10:37:36 +0000
commitc5b524e3762723a200156b79efd58192db320e5b (patch)
tree9dac5dabb515cfab1b68afc88739bc3937b3f26d /src/ls.c
parent54b544c2f4c0b5425d6ff12596a9e82fd8d783d2 (diff)
downloadmpd-c5b524e3762723a200156b79efd58192db320e5b.tar.gz
mpd-c5b524e3762723a200156b79efd58192db320e5b.tar.xz
mpd-c5b524e3762723a200156b79efd58192db320e5b.zip
eliminated duplicate initialization
Local variables which are never read before the first assignment don't need initialization. Saves a few bytes of text. Also don't reset variables which are never read until function return. git-svn-id: https://svn.musicpd.org/mpd/trunk@7199 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/ls.c')
-rw-r--r--src/ls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ls.c b/src/ls.c
index a858057c3..53e4c330d 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -108,7 +108,7 @@ int lsPlaylists(int fd, const char *utf8path)
char s[MPD_PATH_MAX];
char path_max_tmp[MPD_PATH_MAX];
List *list = NULL;
- ListNode *node = NULL;
+ ListNode *node;
char *actualPath = rpp2app_r(path_max_tmp,
utf8_to_fs_charset(path_max_tmp,
utf8path));