From 146e0bb71ca08cb9457e3a265c0cca1c256d30cb Mon Sep 17 00:00:00 2001 From: Walter de Jong Date: Wed, 27 Mar 2013 21:44:47 +0100 Subject: if key is set --- libtac/lib/connect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libtac/lib') diff --git a/libtac/lib/connect.c b/libtac/lib/connect.c index d6d699e..f3ead9f 100644 --- a/libtac/lib/connect.c +++ b/libtac/lib/connect.c @@ -154,7 +154,7 @@ int tac_connect_single(struct addrinfo *server, char *key) { /* set current tac_secret */ tac_encryption = 0; - if (key != NULL && strcmp(key, "") != 0) { + if (key != NULL && *key) { tac_encryption = 1; tac_secret = key; } -- cgit v1.2.3