]> Kevux Git Server - fll/commitdiff
Regression: The iki_read is not processing anything.
authorKevin Day <thekevinday@gmail.com>
Thu, 5 May 2022 03:08:12 +0000 (22:08 -0500)
committerKevin Day <thekevinday@gmail.com>
Thu, 5 May 2022 03:08:12 +0000 (22:08 -0500)
This is a mistake in the commit b1dddea0ecf4aecfe0c7965b1b40b2432ce47b8a.
The size_file variable was created but file.size_read was not replaced in the call:
  status = f_file_size_by_id(file.id, &file.size_read);

level_3/iki_read/c/iki_read.c

index 3c1a5f27c78795cae237c729cffd0cbb73e6417f..e29070d51988a90c4ec640c3a2e7c1c40f201af3 100644 (file)
@@ -396,7 +396,7 @@ extern "C" {
 
           size_file = 0;
 
-          status = f_file_size_by_id(file.id, &file.size_read);
+          status = f_file_size_by_id(file.id, &size_file);
 
           if (F_status_is_error(status)) {
             fll_error_file_print(main->error, F_status_set_fine(status), "f_file_size_by_id", F_true, data.argv[main->parameters.remaining.array[i]], f_file_operation_process_s, fll_error_file_type_file_e);
@@ -407,7 +407,7 @@ extern "C" {
           }
 
           // Skip past empty files.
-          if (!file.size_read) {
+          if (!size_file) {
             f_file_stream_close(F_true, &file);
 
             continue;