diff options
Diffstat (limited to 'usr/src/lib/libc/inc/thr_inlines.h')
-rw-r--r-- | usr/src/lib/libc/inc/thr_inlines.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr/src/lib/libc/inc/thr_inlines.h b/usr/src/lib/libc/inc/thr_inlines.h index f7cdc6a6bd..1259816e63 100644 --- a/usr/src/lib/libc/inc/thr_inlines.h +++ b/usr/src/lib/libc/inc/thr_inlines.h @@ -24,6 +24,10 @@ * Use is subject to license terms. */ +/* + * Copyright 2019 Joyent, Inc. + */ + #ifndef _THR_INLINES_H #define _THR_INLINES_H @@ -138,7 +142,7 @@ gethrtime(void) /* note: caller-saved registers are trashed */ extern __GNU_INLINE int set_lock_byte(volatile uint8_t *__lockp) { - int __value; + int __value = 0; #if defined(__x86) __asm__ __volatile__( "movl $1, %0\n\t" |