summaryrefslogtreecommitdiff
path: root/ext/spl
diff options
context:
space:
mode:
authorArnaud Le Blanc <lbarnaud@php.net>2008-11-19 17:53:47 +0000
committerArnaud Le Blanc <lbarnaud@php.net>2008-11-19 17:53:47 +0000
commit756aef0607eaf4a7b655688ebe0b980144244557 (patch)
tree4743258facab888004295e38722922fa86ea76dd /ext/spl
parente62f5f8f034c2f7f8c1cadefe9560aa7bace4da6 (diff)
downloadphp-git-756aef0607eaf4a7b655688ebe0b980144244557.tar.gz
CS
Diffstat (limited to 'ext/spl')
-rwxr-xr-xext/spl/spl_array.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/spl/spl_array.c b/ext/spl/spl_array.c
index 7230ebd4d4..fb4d12a7de 100755
--- a/ext/spl/spl_array.c
+++ b/ext/spl/spl_array.c
@@ -95,8 +95,8 @@ static void spl_array_rewind(spl_array_object *intern TSRMLS_DC);
static void spl_array_update_pos(spl_array_object* intern) /* {{{ */
{
- Bucket *pos;
- if ((pos = intern->pos)) {
+ Bucket *pos = intern->pos;
+ if (pos != NULL) {
intern->pos_h = pos->h;
}
} /* }}} */