]> git.kaiwu.me - njs.git/commitdiff
FS: fix typo during BytesRead prototype instantiation
authorDmitry Volyntsev <xeioex@nginx.com>
Tue, 22 Sep 2026 02:05:31 +0000 (19:05 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Fri, 25 Sep 2026 23:00:29 +0000 (16:00 -0700)
external/njs_fs_module.c

index 903c095cc130efa331f385a96703cbce2f8ebc4c..2876c84fc4195461135cbab80a82a199eb9417da 100644 (file)
@@ -3919,7 +3919,7 @@ njs_fs_init(njs_vm_t *vm)
     njs_fs_bytes_read_proto_id = njs_vm_external_prototype(vm,
                                                njs_ext_bytes_read,
                                                njs_nitems(njs_ext_bytes_read));
-    if (njs_slow_path(njs_fs_bytes_written_proto_id < 0)) {
+    if (njs_slow_path(njs_fs_bytes_read_proto_id < 0)) {
         return NJS_ERROR;
     }