diff options
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2015-01-22 18:24:20 +0100 |
---|---|---|
committer | Andrew Gregory <andrew.gregory.8@gmail.com> | 2017-05-11 06:45:30 +0200 |
commit | b2fc3bb1340fe0eba619b2e786cca2c4e0378cf3 (patch) | |
tree | de764d117b0d9cd64e332762e8592eafb7f4f7eb /lib/libalpm | |
parent | 286ff380575699e743f4b595fb020cb37b7d5e8c (diff) | |
download | pacman-b2fc3bb1340fe0eba619b2e786cca2c4e0378cf3.tar.gz pacman-b2fc3bb1340fe0eba619b2e786cca2c4e0378cf3.tar.xz |
do not explicitly initialize errno
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Diffstat (limited to 'lib/libalpm')
-rw-r--r-- | lib/libalpm/handle.c | 3 |
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; } |