mirror of
https://github.com/php-gnupg/php-gnupg.git
synced 2024-12-23 10:21:39 +00:00
Fix invalid error check in this init
This commit is contained in:
parent
8a5c714b9c
commit
7116749cb1
1 changed files with 1 additions and 1 deletions
2
gnupg.c
2
gnupg.c
|
@ -150,7 +150,7 @@ static void php_gnupg_this_init(PHPC_THIS_DECLARE(gnupg) TSRMLS_DC)
|
|||
/* {{{ php_gnupg_this_make */
|
||||
static void php_gnupg_this_make(PHPC_THIS_DECLARE(gnupg), zval *options TSRMLS_DC)
|
||||
{
|
||||
if (PHPC_THIS->err != GPG_ERR_NO_ERROR) {
|
||||
if (PHPC_THIS->err == GPG_ERR_NO_ERROR) {
|
||||
char *file_name = GNUPG_PATH;
|
||||
char *home_dir = NULL;
|
||||
phpc_val *ppv_file_name, *ppv_home_dir;
|
||||
|
|
Loading…
Reference in a new issue