summaryrefslogtreecommitdiff
path: root/src/iterator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/iterator.cpp')
-rw-r--r--src/iterator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/iterator.cpp b/src/iterator.cpp
index 6242440..0362fb1 100644
--- a/src/iterator.cpp
+++ b/src/iterator.cpp
@@ -83,10 +83,10 @@ void Iterator::key(zend_object_iterator *iter, zval *key TSRMLS_DC)
Value retval(iterator->key());
// detach the underlying zval
- zval *zval = retval.detach();
+ zval *val = retval.detach();
// copy it to the key
- ZVAL_ZVAL(key, zval, 1, 1);
+ ZVAL_ZVAL(key, val, 1, 1);
}
/**