Skip to content

Commit

Permalink
Removed unused var.
Browse files Browse the repository at this point in the history
  • Loading branch information
Danack committed Apr 5, 2015
1 parent 666116f commit d213561
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phpiredis.c
Expand Up @@ -1143,9 +1143,10 @@ PHP_FUNCTION(phpiredis_reader_reset)
PHP_FUNCTION(phpiredis_reader_destroy)
{
zval *ptr;
phpiredis_reader *reader;
#ifdef ZEND_ENGINE_3
zend_resource *reader_resource;
#else
phpiredis_reader *reader;
#endif

if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &ptr) == FAILURE) {
Expand All @@ -1154,7 +1155,6 @@ PHP_FUNCTION(phpiredis_reader_destroy)

#ifdef ZEND_ENGINE_3
reader_resource = Z_RES_P(ptr);
reader = (void *)zend_fetch_resource(reader_resource, PHPIREDIS_READER_NAME, le_redis_reader_context);
zend_list_delete(reader_resource);
#else
ZEND_FETCH_RESOURCE(reader, void *, &ptr, -1, PHPIREDIS_READER_NAME, le_redis_reader_context);
Expand Down

0 comments on commit d213561

Please sign in to comment.