commit f06a5163466ad0360c0ec17057f3cd3bcc0d583d parent 615b5e60072c6ed941fa8867d8224f5c9c9118f4 Author: Frederic Cambus <fred@statdns.com> Date: Wed, 27 Mar 2019 23:25:08 +0100 Do not pass NULL tokens to strchr(). Diffstat:
M | src/statzone.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/statzone.c b/src/statzone.c @@ -188,7 +188,7 @@ main(int argc, char *argv[]) { rdata = strtok(NULL, "\n"); - if (strchr(rdata, ' ')) + if (rdata && strchr(rdata, ' ')) rdata = strtok(NULL, "\n"); if (rdata) {