shithub: orca

Download patch

ref: 2221238076d35b2e3e0d4b0db1c01938694f0cb7
parent: d39bae25f01fe668b6a8a17d7b50312689d2bacd
author: cancel <cancel@cancel.fm>
date: Fri Nov 30 16:37:53 EST 2018

Remove use of memset in bank.c

--- a/bank.c
+++ b/bank.c
@@ -90,7 +90,9 @@
   return num_to_copy;
 
 fail:
-  memset(dest, 0, dest_count * sizeof(I32));
+  for (Usz i0 = 0; i0 < dest_count; ++i0) {
+    dest[i0] = 0;
+  }
   *cursor = offset;
   return 0;
 }