diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/include/nss_tls.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/include/nss_tls.h b/lib/libc/include/nss_tls.h index be6b74f..999d198 100644 --- a/lib/libc/include/nss_tls.h +++ b/lib/libc/include/nss_tls.h @@ -64,7 +64,7 @@ name##_getstate(struct name##_state **p) \ *p = _pthread_getspecific(name##_state_key); \ if (*p != NULL) \ return (0); \ - *p = calloc(1, sizeof(*p)); \ + *p = calloc(1, sizeof(**p)); \ if (*p == NULL) \ return (ENOMEM); \ rv = _pthread_setspecific(name##_state_key, *p); \ |