Skip to content

Commit 458cc87

Browse files
committed
[FS] Fixed uninitialized local variable.
1 parent a0ced3f commit 458cc87

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.dbuild/pretty/prettify.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
line = line.strip()
2727
line = line.rstrip()
2828
line = line.lstrip()
29-
line = line.decode('utf8')
29+
#line = line.decode('utf8')
3030

3131
if("removed" in line):
3232
description = line.split(" ")[-1][1:][:-1]

os/src/fs/bt_fs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ BT_ERROR BT_Mount(const BT_i8 *src, const BT_i8 *target, const BT_i8 *filesystem
244244
}
245245
} else {
246246
struct bt_list_head *pos;
247+
hMount = NULL;
247248
bt_list_for_each(pos, &g_filesystems) {
248249
fs = (BT_FILESYSTEM *) pos;
249250
const BT_IF_FS *pFs = fs->hFS->h.pIf->oIfs.pFilesystemIF;

0 commit comments

Comments
 (0)