diff options
Diffstat (limited to 'lib/thrd.c')
-rw-r--r-- | lib/thrd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/thrd.c b/lib/thrd.c index bb0e10fc8b..1a13a51e00 100644 --- a/lib/thrd.c +++ b/lib/thrd.c @@ -143,9 +143,7 @@ rpl_thrd_current (void) /* Memory allocation failed. There is not much we can do. Have to busy-loop, waiting for the availability of memory. */ { - struct timespec ts; - ts.tv_sec = 1; - ts.tv_nsec = 0; + struct timespec ts = { .tv_sec = 1 }; thrd_sleep (&ts, NULL); } } |