summaryrefslogtreecommitdiff
path: root/src/bin/psql/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/psql/command.c')
-rw-r--r--src/bin/psql/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c
index 288c1a8c935..fae5940b54e 100644
--- a/src/bin/psql/command.c
+++ b/src/bin/psql/command.c
@@ -3896,7 +3896,7 @@ printSSLInfo(void)
protocol ? protocol : _("unknown"),
cipher ? cipher : _("unknown"),
(compression && strcmp(compression, "off") != 0) ? _("on") : _("off"),
- alpn ? alpn : _("none"));
+ (alpn && alpn[0] != '\0') ? alpn : _("none"));
}
/*