diff options
-rw-r--r-- | libtac/lib/connect.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |