Skip to content

Commit

Permalink
Small fix in ext/ldap, Moved vars definitions to the beginning of the…
Browse files Browse the repository at this point in the history
… block using them
  • Loading branch information
Côme Chilliet committed Jul 10, 2017
1 parent 569d164 commit ed8bfcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/ldap/ldap.c
Original file line number Diff line number Diff line change
Expand Up @@ -2199,8 +2199,6 @@ PHP_FUNCTION(ldap_sort)
PHP_FUNCTION(ldap_get_option)
{
zval *link, *retval;
zval tmp1;
int num_entries;
ldap_linkdata *ld;
zend_long option;

Expand Down Expand Up @@ -2348,6 +2346,8 @@ PHP_FUNCTION(ldap_get_option)
case LDAP_OPT_SERVER_CONTROLS:
case LDAP_OPT_CLIENT_CONTROLS:
{
zval tmp1;
int num_entries;
LDAPControl **ctrls = NULL, **ctrlp;

if (ldap_get_option(ld->link, option, &ctrls) || ctrls == NULL) {
Expand Down

0 comments on commit ed8bfcc

Please sign in to comment.