From b2fc3bb1340fe0eba619b2e786cca2c4e0378cf3 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Thu, 22 Jan 2015 12:24:20 -0500 Subject: do not explicitly initialize errno Signed-off-by: Andrew Gregory --- lib/libalpm/handle.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/libalpm/handle.c b/lib/libalpm/handle.c index 67b28db5..43418d94 100644 --- a/lib/libalpm/handle.c +++ b/lib/libalpm/handle.c @@ -53,11 +53,8 @@ alpm_handle_t *_alpm_handle_new(void) pthread_mutex_init(&(handle->tlock_log), NULL); pthread_mutex_init(&(handle->tlock_task), NULL); pthread_key_create(&(handle->tkey_err), free); - pthread_setspecific(handle->tkey_err, malloc(sizeof(int))); #endif - _alpm_set_errno(handle, 0); - return handle; } -- cgit v1.2.3-24-g4f1b