summaryrefslogtreecommitdiffstats
path: root/src/channel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/channel.c')
-rw-r--r--src/channel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/channel.c b/src/channel.c
index d810925f9e..fa40a141b7 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -1537,7 +1537,7 @@ channel_send(int ch_idx, char_u *buf, char *fun)
channel_T *channel = &channels[ch_idx];
int len = (int)STRLEN(buf);
int res;
- int fd;
+ int fd = -1;
int use_socket = FALSE;
if (channel->ch_sock >= 0)