diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-04-19 21:37:24 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-04-19 21:37:24 -0700 |
commit | c96e3ce62523429a10026c932ceef41eb4aad3dd (patch) | |
tree | 786b15e70ca6c5149360120509f7a89b6f19d49b /connect.c | |
parent | c2cbb30fc075d9bf926a739d05712b4debae4b97 (diff) | |
parent | 22e5ae5c8e6859e5670a2c6bbf5798778373144c (diff) | |
download | git-c96e3ce62523429a10026c932ceef41eb4aad3dd.tar.gz |
Merge branch 'sf/putty-w-args'
* sf/putty-w-args:
connect.c: handle errors from split_cmdline
Diffstat (limited to 'connect.c')
-rw-r--r-- | connect.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -730,7 +730,7 @@ static void handle_ssh_variant(const char *ssh_command, int is_cmdline, const char **ssh_argv; p = xstrdup(ssh_command); - if (split_cmdline(p, &ssh_argv)) { + if (split_cmdline(p, &ssh_argv) > 0) { variant = basename((char *)ssh_argv[0]); /* * At this point, variant points into the buffer |