summaryrefslogtreecommitdiffstats
path: root/nserver/src/protocol.c
diff options
context:
space:
mode:
Diffstat (limited to 'nserver/src/protocol.c')
-rw-r--r--nserver/src/protocol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nserver/src/protocol.c b/nserver/src/protocol.c
index 9c145a6..61f4668 100644
--- a/nserver/src/protocol.c
+++ b/nserver/src/protocol.c
@@ -148,7 +148,7 @@ double ssmean(char *key)
char *ssdump(char *key)
{
- check(key != NULL || strlen(key) < 1, "key invalid");
+ check(key != NULL && strlen(key) > 0, "key invalid");
check(tst != NULL, "tstree not initialized");
// 1. create bstring from 'key'.