diff options
author | Arnaud Le Blanc <lbarnaud@php.net> | 2008-11-19 17:53:47 +0000 |
---|---|---|
committer | Arnaud Le Blanc <lbarnaud@php.net> | 2008-11-19 17:53:47 +0000 |
commit | 756aef0607eaf4a7b655688ebe0b980144244557 (patch) | |
tree | 4743258facab888004295e38722922fa86ea76dd /ext/spl | |
parent | e62f5f8f034c2f7f8c1cadefe9560aa7bace4da6 (diff) | |
download | php-git-756aef0607eaf4a7b655688ebe0b980144244557.tar.gz |
CS
Diffstat (limited to 'ext/spl')
-rwxr-xr-x | ext/spl/spl_array.c | 4 |
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; } } /* }}} */ |