commit | 2657e61367dd759e65f82bcbeb334fb292d28a81 | [log] [tgz] |
---|---|---|
author | Paul J. Davis <paul.joseph.davis@gmail.com> | Tue Oct 29 16:12:47 2019 -0500 |
committer | Paul J. Davis <paul.joseph.davis@gmail.com> | Tue Oct 29 16:21:15 2019 -0500 |
tree | d7295ab78692b37003ca319017ff683a4d71787a | |
parent | 055be31930a0796b2a49f3e6389db66d33c6844f [diff] |
Ensure intialization of offset If we don't initialize offset here its possible that a key selector could apply the provided offset to an uninitialized value passed in from the calling function.
diff --git a/c_src/util.c b/c_src/util.c index 0ede4a2..852c083 100644 --- a/c_src/util.c +++ b/c_src/util.c
@@ -66,6 +66,8 @@ return 0; } + *offset = 0; + if(arity >= 2) { if(IS_ATOM(tuple[1], lt)) { *or_equal = 0;