aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-02-14 18:34:04 +0100
committerMax Kellermann <max@duempel.org>2012-02-14 18:57:12 +0100
commited16ee30290562f6c78ed845b4c619c4c833614b (patch)
tree464c2fabd86279894067bc0058afb047d772270f
parent7338b16c180a879745ecf6dcd6a7d490081dbb01 (diff)
downloadmpd-ed16ee30290562f6c78ed845b4c619c4c833614b.tar.gz
mpd-ed16ee30290562f6c78ed845b4c619c4c833614b.tar.xz
mpd-ed16ee30290562f6c78ed845b4c619c4c833614b.zip
command: eliminate local buffer "unknown"
-rw-r--r--src/command.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/command.c b/src/command.c
index 61f0fdd0c..2f2159e87 100644
--- a/src/command.c
+++ b/src/command.c
@@ -2365,10 +2365,9 @@ static const struct command *
command_checked_lookup(struct client *client, unsigned permission,
int argc, char *argv[])
{
- static char unknown[] = "";
const struct command *cmd;
- current_command = unknown;
+ current_command = "";
if (argc == 0)
return NULL;