projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge commit 'meins/master'
[paraslash.git]
/
afh_common.c
diff --git
a/afh_common.c
b/afh_common.c
index aa7f3d92444faddf9d193aa6c2b86fe04b697d14..8c0eed2731837da4e8d3847d1d3d6caeddfe5102 100644
(file)
--- a/
afh_common.c
+++ b/
afh_common.c
@@
-256,9
+256,10
@@
uint32_t afh_get_largest_chunk_size(struct afh_info *afhi)
*/
void afh_get_header(struct afh_info *afhi, void *map, const char **buf, size_t *len)
{
*/
void afh_get_header(struct afh_info *afhi, void *map, const char **buf, size_t *len)
{
- if (!map || !afhi || !
afhi->header_len) {
+ if (!map || !afhi || !afhi->header_len) {
*buf = NULL;
*len = 0;
*buf = NULL;
*len = 0;
+ return;
}
*len = afhi->header_len;
*buf = map + afhi->header_offset;
}
*len = afhi->header_len;
*buf = map + afhi->header_offset;