projects
/
bertos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29e7e26
)
Silence uninitialized value warning.
author
batt
<batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 11 Nov 2008 15:51:16 +0000
(15:51 +0000)
committer
batt
<batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 11 Nov 2008 15:51:16 +0000
(15:51 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1922
38d2e660
-2303-0410-9eaa-
f027e97ec537
bertos/fs/battfs.c
patch
|
blob
|
history
diff --git
a/bertos/fs/battfs.c
b/bertos/fs/battfs.c
index 1ea39c5072e14c45f167cca124308441f2c46812..6fd6ec8215ae244af81149efed55d8cd9c7fa55f 100644
(file)
--- a/
bertos/fs/battfs.c
+++ b/
bertos/fs/battfs.c
@@
-522,6
+522,9
@@
bool battfs_fsck(struct BattFsSuper *disk)
bool start = true;
+ /* Uneeded, the first time will be overwritten but useful to silence
+ * the warning for uninitialized value */
+ FSCHECK(readHdr(disk, 0, &prev_hdr));
for (pgcnt_t page = 0; page < disk->page_count; page++)
{
FSCHECK(readHdr(disk, disk->page_array[page], &hdr));