From d5fcfa2c5ce42f78e144cdc375078ce918d194ad Mon Sep 17 00:00:00 2001 From: TapTap Date: Mon, 14 Sep 2026 17:38:23 +0200 Subject: [PATCH] style(ssh): drop redundant condition flagged by cppcheck --- src/shared/transport_ssh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/transport_ssh.c b/src/shared/transport_ssh.c index b9d1f93..7236133 100644 --- a/src/shared/transport_ssh.c +++ b/src/shared/transport_ssh.c @@ -80,7 +80,7 @@ static int parse_remote_dest(const char* dest, RemoteDest* r) { * crafted destination can never inject an ssh option such as * -oProxyCommand=... . This mirrors config_parse_ssh_dest's validation and * is defense-in-depth for callers that bypass it. */ - if (r->host[0] == '\0' || r->host[0] == '-' || (r->user[0] != '\0' && r->user[0] == '-')) { + if (r->host[0] == '\0' || r->host[0] == '-' || r->user[0] == '-') { remote_dest_destroy(r); return -1; }