patch 7.4.1329
Problem: Crash when using channel that failed to open.
Solution: Check for NULL. Update messages. (Yukihiro Nakadaira)
diff --git a/src/channel.c b/src/channel.c
index d5d7ffb..003c933 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -634,7 +634,7 @@
{
/* Get here when the server can't be found. */
ch_error(NULL, "Cannot connect to port after retry\n");
- PERROR(_("E899: Cannot connect to port after retry2"));
+ PERROR(_("E899: Cannot connect to port after retry"));
sock_close(sd);
channel_free(channel);
return NULL;
@@ -1220,7 +1220,7 @@
void
channel_close(channel_T *channel)
{
- ch_log(channel, "Closing channel");
+ ch_log(channel, "Closing channel\n");
#ifdef FEAT_GUI
channel_gui_unregister(channel);