Skip to content

Commit

Permalink
Check for errors in sqlite3_step in fakefs_rebuild
Browse files Browse the repository at this point in the history
Pretty sure this causes ish-app#625. Don't know how it took this long to
find...
  • Loading branch information
tbodt committed May 30, 2020
1 parent 0aa12cc commit dc5bf2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/fake-rebuild.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ int fakefs_rebuild(struct mount *mount) {
for (unsigned i = 0; i < HASH_SIZE; i++)
list_init(&hashtable[i]);

while (sqlite3_step(get_paths) == SQLITE_ROW) {
while (STEP(get_paths)) {
const char *path = (const char *) sqlite3_column_text(get_paths, 0);
ino_t inode = sqlite3_column_int64(get_paths, 1);

Expand Down

0 comments on commit dc5bf2d

Please sign in to comment.