nserver

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | LICENSE

commit 9adf646a9857c4073aa4e076269a84ee521a13ed
parent 8436eac91efa5fc13d5eefaf25a3666b98a4d77d
Author: rsiddharth <s@ricketyspace.net>
Date:   Sat, 11 Apr 2020 12:58:29 -0400

nserver: Update ssdump.

* nserver/src/protocol.c (ssdump): Fix key strlen check.

Diffstat:
nserver/src/protocol.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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'.