From d9117a272b66cfd314fd5d0b6a486ab116e44bf5 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 3 Apr 2019 21:53:20 +0200 Subject: [PATCH] client/Response: use C++11 initializer --- src/client/Response.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/Response.hxx b/src/client/Response.hxx index ad9e3a0f7..1c9e935ee 100644 --- a/src/client/Response.hxx +++ b/src/client/Response.hxx @@ -41,11 +41,11 @@ class Response { /** * This command's name. Used to generate error messages. */ - const char *command; + const char *command = ""; public: Response(Client &_client, unsigned _list_index) noexcept - :client(_client), list_index(_list_index), command("") {} + :client(_client), list_index(_list_index) {} Response(const Response &) = delete; Response &operator=(const Response &) = delete;