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
This commit is contained in:
Max Kellermann
2008-03-26 10:37:36 +00:00
committed by Eric Wong
parent 54b544c2f4
commit c5b524e376
9 changed files with 20 additions and 24 deletions

View File

@@ -81,7 +81,7 @@ static int searchInDirectory(int fd, Song * song, void *data)
int searchForSongsIn(int fd, char *name, int numItems, LocateTagItem * items)
{
int ret = -1;
int ret;
int i;
char **originalNeedles = xmalloc(numItems * sizeof(char *));