r914: fixed two harmless division by 0

Resolves #326
This commit is contained in:
Heng Li
2019-02-12 19:30:49 -05:00
parent 1739a260fb
commit 32ab6ce15b
3 changed files with 3 additions and 1 deletions
+1
View File
@@ -28,6 +28,7 @@ mm128_t *mm_chain_dp(int max_dist_x, int max_dist_y, int bw, int max_skip, int m
mm128_t *b, *w;
if (_u) *_u = 0, *n_u_ = 0;
if (n == 0 || a == 0) return 0;
f = (int32_t*)kmalloc(km, n * 4);
p = (int32_t*)kmalloc(km, n * 4);
t = (int32_t*)kmalloc(km, n * 4);