diff options
author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2023-11-07 12:28:50 +0100 |
---|---|---|
committer | Sander Vrijders <sander@ouroboros.rocks> | 2023-11-08 09:17:33 +0100 |
commit | e8d7815033a0a9079be9b8ddefd496043f3f5dee (patch) | |
tree | 9f0d6e2d8050e1e752fa178f2219be9c1c3b5247 /src/irmd/reg/name.c | |
parent | 9feb012d13f51948a9ccd9c15150495437b40126 (diff) | |
download | ouroboros-e8d7815033a0a9079be9b8ddefd496043f3f5dee.tar.gz ouroboros-e8d7815033a0a9079be9b8ddefd496043f3f5dee.zip |
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 <dimitri@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/irmd/reg/name.c')
-rw-r--r-- | src/irmd/reg/name.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |