From b93523c0b1009f7ff3e6f1629ad11ab7594333fb Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 17 Oct 2013 21:45:32 +0200 Subject: UpdateGlue: never pass null to update_enqueue() --- src/OtherCommands.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/OtherCommands.cxx') 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); -- cgit v1.2.3