]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: tasklet: Set process to NULL.
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 19 Jul 2018 14:02:16 +0000 (16:02 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 19 Jul 2018 14:23:08 +0000 (16:23 +0200)
Some consumers expect the process to be NULL when a tasklet it created, so
do so.

include/proto/task.h

index dd08392d9eee8ae5eb75ecc4654e1ec67b42b471..d1371f3b01eeb0fdc6318856b47886c558ee0a09 100644 (file)
@@ -273,6 +273,7 @@ static inline void tasklet_init(struct tasklet *t)
        t->nice = -32768;
        t->calls = 0;
        t->state = 0;
+       t->process = NULL;
        LIST_INIT(&t->list);
 }