mirror of
https://github.com/php-gnupg/php-gnupg.git
synced 2024-11-22 14:27:09 +00:00
Fix CS in gnupg_export
This commit is contained in:
parent
8bd76523eb
commit
f20f7081cb
1 changed files with 6 additions and 4 deletions
10
gnupg.c
10
gnupg.c
|
@ -1551,20 +1551,22 @@ PHP_FUNCTION(gnupg_export)
|
||||||
GNUPG_GETOBJ();
|
GNUPG_GETOBJ();
|
||||||
|
|
||||||
if (this) {
|
if (this) {
|
||||||
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &searchkey, &searchkey_len) == FAILURE) {
|
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s",
|
||||||
|
&searchkey, &searchkey_len) == FAILURE) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs", &res, &searchkey, &searchkey_len) == FAILURE) {
|
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs",
|
||||||
|
&res, &searchkey, &searchkey_len) == FAILURE) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
GNUPG_RES_FETCH();
|
GNUPG_RES_FETCH();
|
||||||
}
|
}
|
||||||
if ((PHPC_THIS->err = gpgme_data_new(&out)) != GPG_ERR_NO_ERROR) {
|
if (!PHP_GNUPG_DO(gpgme_data_new(&out))) {
|
||||||
GNUPG_ERR("could not create data buffer");
|
GNUPG_ERR("could not create data buffer");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ((PHPC_THIS->err = gpgme_op_export(PHPC_THIS->ctx, searchkey, 0, out)) != GPG_ERR_NO_ERROR) {
|
if (!PHP_GNUPG_DO(gpgme_op_export(PHPC_THIS->ctx, searchkey, 0, out))) {
|
||||||
GNUPG_ERR("export failed");
|
GNUPG_ERR("export failed");
|
||||||
gpgme_data_release(out);
|
gpgme_data_release(out);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue