summaryrefslogtreecommitdiff
path: root/lib/glthread/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/glthread/thread.c')
-rw-r--r--lib/glthread/thread.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/glthread/thread.c b/lib/glthread/thread.c
index 1f28be59c8..3352159edc 100644
--- a/lib/glthread/thread.c
+++ b/lib/glthread/thread.c
@@ -139,9 +139,7 @@ gl_thread_self (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);
}
}