diff options
Diffstat (limited to 'src/command/OtherCommands.cxx')
-rw-r--r-- | src/command/OtherCommands.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/command/OtherCommands.cxx b/src/command/OtherCommands.cxx index b3564040c..6415e84df 100644 --- a/src/command/OtherCommands.cxx +++ b/src/command/OtherCommands.cxx @@ -121,13 +121,10 @@ static constexpr tag_handler print_tag_handler = { CommandResult handle_lsinfo(Client &client, int argc, char *argv[]) { - const char *uri; - - if (argc == 2) - uri = argv[1]; - else + const char *const uri = argc == 2 + ? argv[1] /* default is root directory */ - uri = ""; + : ""; if (memcmp(uri, "file:///", 8) == 0) { /* print information about an arbitrary local file */ |