From bdb3bc02992d16d48af80a0911effcc01fecc0c8 Mon Sep 17 00:00:00 2001 From: Christian Prochaska Date: Thu, 26 Jan 2017 17:11:57 +0100 Subject: [PATCH] dde_linux: initialize 'delayed_work' in DECLARE_DELAYED_WORK() Fixes #2257 --- repos/dde_linux/src/include/lx_emul/work.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/dde_linux/src/include/lx_emul/work.h b/repos/dde_linux/src/include/lx_emul/work.h index 9bc6c6608e..b3618b3453 100644 --- a/repos/dde_linux/src/include/lx_emul/work.h +++ b/repos/dde_linux/src/include/lx_emul/work.h @@ -89,7 +89,7 @@ bool flush_delayed_work(struct delayed_work *dwork); bool queue_work(struct workqueue_struct *wq, struct work_struct *work); #define DECLARE_DELAYED_WORK(n, f) \ - struct delayed_work n + struct delayed_work n = { .work = { .func = f }, .timer = { .function = 0 } } bool mod_delayed_work(struct workqueue_struct *, struct delayed_work *, unsigned long);