diff options
author | Max Kellermann <max@duempel.org> | 2013-10-17 21:45:32 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-17 21:45:41 +0200 |
commit | b93523c0b1009f7ff3e6f1629ad11ab7594333fb (patch) | |
tree | 8bd615e90ac647c04ed9a0301c09575a736074a4 /src/OtherCommands.cxx | |
parent | 7ef40de98bb3cbf2fd1fe693871a30064d7ef41b (diff) | |
download | mpd-b93523c0b1009f7ff3e6f1629ad11ab7594333fb.tar.gz mpd-b93523c0b1009f7ff3e6f1629ad11ab7594333fb.tar.xz mpd-b93523c0b1009f7ff3e6f1629ad11ab7594333fb.zip |
UpdateGlue: never pass null to update_enqueue()
Diffstat (limited to '')
-rw-r--r-- | src/OtherCommands.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/OtherCommands.cxx b/src/OtherCommands.cxx index f60078cf9..507e4df17 100644 --- a/src/OtherCommands.cxx +++ b/src/OtherCommands.cxx @@ -157,7 +157,7 @@ handle_lsinfo(Client *client, int argc, char *argv[]) enum command_return handle_update(Client *client, gcc_unused int argc, char *argv[]) { - const char *path = NULL; + const char *path = ""; unsigned ret; assert(argc <= 2); @@ -166,7 +166,7 @@ handle_update(Client *client, gcc_unused int argc, char *argv[]) if (*path == 0 || strcmp(path, "/") == 0) /* backwards compatibility with MPD 0.15 */ - path = NULL; + path = ""; else if (!uri_safe_local(path)) { command_error(client, ACK_ERROR_ARG, "Malformed path"); @@ -188,7 +188,7 @@ handle_update(Client *client, gcc_unused int argc, char *argv[]) enum command_return handle_rescan(Client *client, gcc_unused int argc, char *argv[]) { - const char *path = NULL; + const char *path = ""; unsigned ret; assert(argc <= 2); |