summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2003-10-28 22:23:33 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2003-10-28 22:23:33 +0000
commitbfe9c5b60845ab3de7fab0234fc3bdea50ec1cc4 (patch)
tree31859cb777fa5a207f74aad275fd9be753ff334c
parent81f4b4fd4cca47c842533e6b30073104df8d2cb2 (diff)
downloadrockbox-bfe9c5b60845ab3de7fab0234fc3bdea50ec1cc4.zip
rockbox-bfe9c5b60845ab3de7fab0234fc3bdea50ec1cc4.tar.gz
rockbox-bfe9c5b60845ab3de7fab0234fc3bdea50ec1cc4.tar.bz2
rockbox-bfe9c5b60845ab3de7fab0234fc3bdea50ec1cc4.tar.xz
Killed a warning (and a bug I introduced in the last commit)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3994 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/drivers/fat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/drivers/fat.c b/firmware/drivers/fat.c
index 4caa233..9d1f3af 100644
--- a/firmware/drivers/fat.c
+++ b/firmware/drivers/fat.c
@@ -1285,10 +1285,11 @@ int fat_closewrite(struct fat_file *file, int size, int attr)
}
}
- if (file->dircluster)
+ if (file->dircluster) {
rc = update_short_entry(file, size, attr);
if (rc < 0)
return rc * 10 - 1;
+ }
flush_fat();