summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2015-01-22 18:24:20 +0100
committerAndrew Gregory <andrew.gregory.8@gmail.com>2017-05-11 06:45:30 +0200
commitb2fc3bb1340fe0eba619b2e786cca2c4e0378cf3 (patch)
treede764d117b0d9cd64e332762e8592eafb7f4f7eb
parent286ff380575699e743f4b595fb020cb37b7d5e8c (diff)
downloadpacman-b2fc3bb1340fe0eba619b2e786cca2c4e0378cf3.tar.gz
pacman-b2fc3bb1340fe0eba619b2e786cca2c4e0378cf3.tar.xz
do not explicitly initialize errno
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
-rw-r--r--lib/libalpm/handle.c3
1 files changed, 0 insertions, 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;
}