projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
afh: Make sure we never return a negative chunk number.
[paraslash.git]
/
afh_common.c
diff --git
a/afh_common.c
b/afh_common.c
index f36c32e20ec6332a24720d9bf106ab9b39d756ba..dfbf75132f4e4372eb0b4c95bff8ef25793dc545 100644
(file)
--- a/
afh_common.c
+++ b/
afh_common.c
@@
-295,8
+295,8
@@
int32_t afh_get_start_chunk(int32_t approx_chunk_num,
for (k = PARA_MAX(0, approx_chunk_num); k >= 0; k--)
if (get_chunk_len(k, afhi) > 0)
-
brea
k;
- return
k
;
+
return
k;
+ return
0
;
}
/**