diff --git a/littlefs/.github/workflows/release.yml b/littlefs/.github/workflows/release.yml index c0d446d..61b2972 100644 --- a/littlefs/.github/workflows/release.yml +++ b/littlefs/.github/workflows/release.yml @@ -81,7 +81,9 @@ jobs: - name: find-prev-version continue-on-error: true run: | - LFS_PREV_VERSION="$(git describe --tags --abbrev=0 --match 'v*')" + LFS_PREV_VERSION="$( \ + git describe --tags --abbrev=0 --match 'v*' \ + || true)" echo "LFS_PREV_VERSION=$LFS_PREV_VERSION" echo "LFS_PREV_VERSION=$LFS_PREV_VERSION" >> $GITHUB_ENV @@ -240,6 +242,7 @@ jobs: run: | # create release and patch version tag (vN.N.N) # only draft if not a patch release + touch release.txt [ -e table.txt ] && cat table.txt >> release.txt echo >> release.txt [ -e changes.txt ] && cat changes.txt >> release.txt diff --git a/littlefs/lfs.c b/littlefs/lfs.c index 38b825d..f6b9655 100644 --- a/littlefs/lfs.c +++ b/littlefs/lfs.c @@ -877,7 +877,7 @@ static int lfs_dir_traverse(lfs_t *lfs, // iterate over directory and attrs lfs_tag_t tag; const void *buffer; - struct lfs_diskoff disk; + struct lfs_diskoff disk = {0}; while (true) { { if (off+lfs_tag_dsize(ptag) < dir->off) { @@ -1628,7 +1628,7 @@ static int lfs_dir_commitcrc(lfs_t *lfs, struct lfs_commit *commit) { } // space for fcrc? - uint8_t eperturb = -1; + uint8_t eperturb = (uint8_t)-1; if (noff >= end && noff <= lfs->cfg->block_size - lfs->cfg->prog_size) { // first read the leading byte, this always contains a bit // we can perturb to avoid writes that don't change the fcrc