Skip to content

Commit 9aa9cf8

Browse files
fd00tagomoris
authored andcommitted
Fix switch fall-through in copy_ext_file_error
1 parent d7cfd27 commit 9aa9cf8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

box.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,16 +514,22 @@ copy_ext_file_error(char *message, size_t size, int copy_retvalue, const char *s
514514
switch (copy_retvalue) {
515515
case 1:
516516
snprintf(message, size, "can't open the extension path: %s", src_path);
517+
break;
517518
case 2:
518519
snprintf(message, size, "can't open the file to write: %s", dst_path);
520+
break;
519521
case 3:
520522
snprintf(message, size, "failed to read the extension path: %s", src_path);
523+
break;
521524
case 4:
522525
snprintf(message, size, "failed to write the extension path: %s", dst_path);
526+
break;
523527
case 5:
524528
snprintf(message, size, "failed to stat the extension path to copy permissions: %s", src_path);
529+
break;
525530
case 6:
526531
snprintf(message, size, "failed to set permissions to the copied extension path: %s", dst_path);
532+
break;
527533
default:
528534
rb_bug("unknown return value of copy_ext_file: %d", copy_retvalue);
529535
}

0 commit comments

Comments
 (0)