diff options
Diffstat (limited to 'firmware/common')
-rw-r--r-- | firmware/common/dircache.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/common/dircache.c b/firmware/common/dircache.c index 0cdaf1bd4a..589986911c 100644 --- a/firmware/common/dircache.c +++ b/firmware/common/dircache.c | |||
@@ -2612,7 +2612,8 @@ static dc_serial_t get_file_serialhash(const struct dircache_file *dcfilep) | |||
2612 | idx = ce->up; | 2612 | idx = ce->up; |
2613 | } | 2613 | } |
2614 | 2614 | ||
2615 | h = dc_hash_serialnum(get_idx_dcvolp(idx)->serialnum, h); | 2615 | if (idx < 0) |
2616 | h = dc_hash_serialnum(get_idx_dcvolp(idx)->serialnum, h); | ||
2616 | 2617 | ||
2617 | return h; | 2618 | return h; |
2618 | } | 2619 | } |