From e8d7815033a0a9079be9b8ddefd496043f3f5dee Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Tue, 7 Nov 2023 12:28:50 +0100 Subject: irmd: Fix use of uninitialized value The value for 'ret' was not initialized when comparing to -ETIMEDOUT in reg_name_leave_state(). Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/irmd/reg/name.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/irmd/reg/name.c') diff --git a/src/irmd/reg/name.c b/src/irmd/reg/name.c index 4d26c762..cd245674 100644 --- a/src/irmd/reg/name.c +++ b/src/irmd/reg/name.c @@ -417,7 +417,7 @@ int reg_name_leave_state(struct reg_name * name, { struct timespec ts; struct timespec * abstime = NULL; - int ret; + int ret = 0; assert(name); assert(state != NAME_DESTROY); -- cgit v1.2.3