Skip to content

Commit 925679b

Browse files
committed
Fix [-Wjump-misses-init] in spl_directory.c by adding an inner scope
1 parent 9f8eb9d commit 925679b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/spl/spl_directory.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,7 @@ static spl_filesystem_object *spl_filesystem_object_create_type(int num_args, sp
516516
}
517517
break;
518518
case SPL_FS_FILE:
519+
{
519520
ce = ce ? ce : source->file_class;
520521

521522
if (UNEXPECTED(zend_update_class_constants(ce) != SUCCESS)) {
@@ -563,6 +564,7 @@ static spl_filesystem_object *spl_filesystem_object_create_type(int num_args, sp
563564
}
564565
}
565566
break;
567+
}
566568
case SPL_FS_DIR:
567569
zend_restore_error_handling(&error_handling);
568570
zend_throw_exception_ex(spl_ce_RuntimeException, 0, "Operation not supported");

0 commit comments

Comments
 (0)