mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-26 07:53:58 +00:00
unpack.h: fix compiler warnings, improve error handling
This commit is contained in:
parent
d003046078
commit
a7d4dd2ba6
1 changed files with 5 additions and 0 deletions
|
@ -388,6 +388,11 @@ static inline int unpack_callback_raw(unpack_user* u, const char* b, const char*
|
|||
u->expect = expect_map_item_end;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
if(u->inside_chunks) {
|
||||
SET_LAST_ERROR("Unexpected raw in chunks structure");
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue