Skip to content

Commit

Permalink
Fix file duplication regression after 4f7a06c
Browse files Browse the repository at this point in the history
  • Loading branch information
gfwilliams committed Oct 14, 2022
1 parent 7ab44c3 commit 9691f8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jsflash.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ static void jsfCacheClear() {
}
static void jsfCacheClearFile(JsfFileName name) {
for (int i=0;i<jsfCacheEntries;i++) {
if (jsfIsNameEqual(jsfCache[i].header.name, name))
if (!jsfIsNameEqual(jsfCache[i].header.name, name))
continue;
// if found, shift subsequent files forward over this one
for (;i<jsfCacheEntries-1;i++)
Expand Down

0 comments on commit 9691f8f

Please sign in to comment.