htpipe: Fixed simple initialization bug.
authorFredrik Tolf <fredrik@dolda2000.com>
Sat, 15 May 2021 01:21:02 +0000 (03:21 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Sat, 15 May 2021 01:21:05 +0000 (03:21 +0200)
src/htpipe.c

index 7bfde75..223212e 100644 (file)
@@ -104,6 +104,7 @@ static void runserver(int lsk, int ch)
     struct hthead *req;
     
     ncl = 0;
+    cl = NULL;
     while(1) {
        struct pollfd pfd[ncl + 1];
        for(i = 0; i < ncl; i++) {