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

index 5209df270a393672d0dc04b595250558de9878bf..d04888667d9870bd6e83eb51540692f3f1bedc50 100755 (executable)
@@ -96,8 +96,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;
        }
 } /* }}} */