From c5b524e3762723a200156b79efd58192db320e5b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 26 Mar 2008 10:37:36 +0000 Subject: 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 --- src/command.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/command.c') diff --git a/src/command.c b/src/command.c index 78eb9a597..661c28fdd 100644 --- a/src/command.c +++ b/src/command.c @@ -747,7 +747,7 @@ static int handleClearError(int fd, int *permission, int argc, char *argv[]) static int handleList(int fd, int *permission, int argc, char *argv[]) { - int numConditionals = 0; + int numConditionals; LocateTagItem *conditionals = NULL; int tagType = getLocateTagItemType(argv[1]); int ret; @@ -1122,7 +1122,7 @@ static CommandEntry *getCommandEntryAndCheckArgcAndPermission(int fd, static CommandEntry *getCommandEntryFromString(char *string, int *permission) { - CommandEntry *cmd = NULL; + CommandEntry *cmd; char *argv[COMMAND_ARGV_MAX] = { NULL }; int argc = buffer2array(string, argv, COMMAND_ARGV_MAX); -- cgit v1.2.3