Explorar o código

Merge pull request #744 from littlefs-project/fix-fetchmatch-err-path

Fix lfs_dir_fetchmatch not propogating bd errors correctly in one case
Christopher Haster %!s(int64=3) %!d(string=hai) anos
pai
achega
6a53d76e90
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      lfs.c

+ 1 - 0
lfs.c

@@ -1157,6 +1157,7 @@ static lfs_stag_t lfs_dir_fetchmatch(lfs_t *lfs,
                         dir->erased = false;
                         break;
                     }
+                    return err;
                 }
                 lfs_pair_fromle32(temptail);
             }