mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-19 04:41:50 +00:00
cache sync: move assert() behind declarations
This commit is contained in:
parent
86363dcd4b
commit
49ca3dca33
1 changed files with 2 additions and 2 deletions
|
@ -54,8 +54,6 @@ static inline void unpack_init(unpack_context* ctx)
|
|||
|
||||
static inline int unpack_execute(unpack_context* ctx, const char* data, size_t len, size_t* off)
|
||||
{
|
||||
assert(len >= *off);
|
||||
|
||||
const unsigned char* p = (unsigned char*)data + *off;
|
||||
const unsigned char* const pe = (unsigned char*)data + len;
|
||||
const void* n = NULL;
|
||||
|
@ -70,6 +68,8 @@ static inline int unpack_execute(unpack_context* ctx, const char* data, size_t l
|
|||
|
||||
int ret;
|
||||
|
||||
assert(len >= *off);
|
||||
|
||||
#define construct_cb(name) \
|
||||
construct && unpack_callback ## name
|
||||
|
||||
|
|
Loading…
Reference in a new issue