Skip to content

Commit

Permalink
Avoid error getting lost in 0-byte cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
umisef committed Apr 22, 2024
1 parent ba3fa1d commit d85ea79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/modules/nvs.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ static int lnvs_forcestring(lua_State *L)
err = nvs_commit(handle);
}
luaM_freemem(L, blob, needed_len);
return check_err(L, nvs_commit(handle));
return check_err(L, err);
}
}

Expand Down

0 comments on commit d85ea79

Please sign in to comment.