aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2006-07-30 08:56:55 +0000
committerEric Wong <normalperson@yhbt.net>2006-07-30 08:56:55 +0000
commita80168a15b7514d58c7af2dc6d7a2b44a4791108 (patch)
treeb3b13d47cbfbef3cd6202de401839fc800f60e3e /src/command.c
parente86fd65c81be319c8f4848d42053084ceab9afc8 (diff)
downloadmpd-a80168a15b7514d58c7af2dc6d7a2b44a4791108.tar.gz
mpd-a80168a15b7514d58c7af2dc6d7a2b44a4791108.tar.xz
mpd-a80168a15b7514d58c7af2dc6d7a2b44a4791108.zip
gcc signedness and sparse fixes
git-svn-id: https://svn.musicpd.org/mpd/trunk@4489 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/command.c')
-rw-r--r--src/command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command.c b/src/command.c
index b43882178..b063f8a0e 100644
--- a/src/command.c
+++ b/src/command.c
@@ -1141,7 +1141,7 @@ static CommandEntry *getCommandEntryAndCheckArgcAndPermission(int fd,
static CommandEntry *getCommandEntryFromString(char *string, int *permission)
{
CommandEntry *cmd = NULL;
- char *argv[COMMAND_ARGV_MAX] = { 0 };
+ char *argv[COMMAND_ARGV_MAX] = { NULL };
int argc = cstrtok(string, argv, COMMAND_ARGV_MAX);
if (0 == argc)
@@ -1157,7 +1157,7 @@ static int processCommandInternal(int fd, int *permission,
char *commandString, struct strnode *cmdnode)
{
int argc;
- char *argv[COMMAND_ARGV_MAX] = { 0 };
+ char *argv[COMMAND_ARGV_MAX] = { NULL };
CommandEntry *cmd;
int ret = -1;