aboutsummaryrefslogtreecommitdiffstats
path: root/src/command/OtherCommands.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-08-14 19:48:30 +0200
committerMax Kellermann <max@duempel.org>2015-08-14 19:48:30 +0200
commit36cd73df51c6bae6b283f1bf14704d86ad98b3c5 (patch)
tree65a292077e077bf423fdb33a21e53f15982915a1 /src/command/OtherCommands.cxx
parent6f20889f00e4cee39ceac0f65109cdd013ee9a5d (diff)
downloadmpd-36cd73df51c6bae6b283f1bf14704d86ad98b3c5.tar.gz
mpd-36cd73df51c6bae6b283f1bf14704d86ad98b3c5.tar.xz
mpd-36cd73df51c6bae6b283f1bf14704d86ad98b3c5.zip
client, command: use StringIsEqual()
Diffstat (limited to 'src/command/OtherCommands.cxx')
-rw-r--r--src/command/OtherCommands.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/command/OtherCommands.cxx b/src/command/OtherCommands.cxx
index 96415962f..be026a56a 100644
--- a/src/command/OtherCommands.cxx
+++ b/src/command/OtherCommands.cxx
@@ -37,6 +37,7 @@
#include "util/UriUtil.hxx"
#include "util/Error.hxx"
#include "util/ConstBuffer.hxx"
+#include "util/StringAPI.hxx"
#include "fs/AllocatedPath.hxx"
#include "Stats.hxx"
#include "Permission.hxx"
@@ -265,7 +266,7 @@ handle_update(Client &client, Request args, Response &r, bool discard)
if (!args.IsEmpty()) {
path = args.front();
- if (*path == 0 || strcmp(path, "/") == 0)
+ if (*path == 0 || StringIsEqual(path, "/"))
/* backwards compatibility with MPD 0.15 */
path = "";
else if (!uri_safe_local(path)) {