diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2003-10-28 22:23:33 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2003-10-28 22:23:33 +0000 |
commit | bfe9c5b60845ab3de7fab0234fc3bdea50ec1cc4 (patch) | |
tree | 31859cb777fa5a207f74aad275fd9be753ff334c | |
parent | 81f4b4fd4cca47c842533e6b30073104df8d2cb2 (diff) | |
download | rockbox-bfe9c5b60845ab3de7fab0234fc3bdea50ec1cc4.tar.gz rockbox-bfe9c5b60845ab3de7fab0234fc3bdea50ec1cc4.zip |
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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/drivers/fat.c b/firmware/drivers/fat.c index 4caa233635..9d1f3af5ff 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) | |||
1285 | } | 1285 | } |
1286 | } | 1286 | } |
1287 | 1287 | ||
1288 | if (file->dircluster) | 1288 | if (file->dircluster) { |
1289 | rc = update_short_entry(file, size, attr); | 1289 | rc = update_short_entry(file, size, attr); |
1290 | if (rc < 0) | 1290 | if (rc < 0) |
1291 | return rc * 10 - 1; | 1291 | return rc * 10 - 1; |
1292 | } | ||
1292 | 1293 | ||
1293 | flush_fat(); | 1294 | flush_fat(); |
1294 | 1295 | ||