]> granicus.if.org Git - php/commitdiff
CS
authorArnaud Le Blanc <lbarnaud@php.net>
Wed, 19 Nov 2008 17:53:47 +0000 (17:53 +0000)
committerArnaud Le Blanc <lbarnaud@php.net>
Wed, 19 Nov 2008 17:53:47 +0000 (17:53 +0000)
ext/spl/spl_array.c

index 7230ebd4d4daacc5ed6ec48fd253dd3c46ac6308..fb4d12a7de9543905056cfaa6f4bcf50af7ddd4e 100755 (executable)
@@ -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;
        }
 } /* }}} */