ssh: apply style(9) to version_addendum
Reported by: allanjude (in review D29953)
Fixes: 462c32cb8d
("Upgrade OpenSSH to 6.1p1.")
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
b13ac67842
commit
613b4b7971
@ -873,7 +873,7 @@ main(int ac, char **av)
|
||||
}
|
||||
break;
|
||||
case 'V':
|
||||
if (options.version_addendum &&
|
||||
if (options.version_addendum != NULL &&
|
||||
*options.version_addendum != '\0')
|
||||
fprintf(stderr, "%s %s, %s\n", SSH_RELEASE,
|
||||
options.version_addendum,
|
||||
|
@ -920,7 +920,8 @@ drop_connection(int sock, int startups, int notify_pipe)
|
||||
static void
|
||||
usage(void)
|
||||
{
|
||||
if (options.version_addendum && *options.version_addendum != '\0')
|
||||
if (options.version_addendum != NULL &&
|
||||
*options.version_addendum != '\0')
|
||||
fprintf(stderr, "%s %s, %s\n",
|
||||
SSH_RELEASE,
|
||||
options.version_addendum, OPENSSL_VERSION_STRING);
|
||||
|
Loading…
Reference in New Issue
Block a user