summaryrefslogtreecommitdiff
path: root/src/tls_test.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2002-10-24 16:39:14 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2002-10-24 16:39:14 +0000
commitf42c22c62e41809a2dfeb868ec7c8697552af02e (patch)
tree8209e5b4807255e87915dbf49e4e13db2563d109 /src/tls_test.c
parentad5c74796789735b80ade87b5571cd1f3e2a9d1f (diff)
downloadgnutls-f42c22c62e41809a2dfeb868ec7c8697552af02e.tar.gz
gnutls-cli-debug now accepts one hostname only
Diffstat (limited to 'src/tls_test.c')
-rw-r--r--src/tls_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tls_test.c b/src/tls_test.c
index 07670a942e..8df3e6c6c9 100644
--- a/src/tls_test.c
+++ b/src/tls_test.c
@@ -217,8 +217,8 @@ void gaa_parser(int argc, char **argv)
}
port = info.pp;
- if (info.nrest_args==0) hostname="localhost";
- else hostname = info.rest_args[0];
+ if (info.rest_args==NULL) hostname="localhost";
+ else hostname = info.rest_args;
more_info = info.more_info;