From e3cddf37832691a0b9179cf91a0ea15b97ad3712 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 9 May 2016 13:56:15 +0100 Subject: [PATCH] Fix use of potentially null local_client Fixes #667 --- src/main.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main.cc b/src/main.cc index f7e2ea68..eb92117e 100644 --- a/src/main.cc +++ b/src/main.cc @@ -564,13 +564,13 @@ int run_server(StringView session, StringView init_command, auto& buffer = selections.buffer(); selections = SelectionList(buffer, buffer.clamp(target_coord)); local_client->context().window().center_line(target_coord.line); - } - if (startup_error) - local_client->print_status({ - "error during startup, see *debug* buffer for details", - get_face("Error") - }); + if (startup_error) + local_client->print_status({ + "error during startup, see *debug* buffer for details", + get_face("Error") + }); + } } try