commit c1e377a0b828d51dc1fca298f6052722dee3a665
parent 5f236ed0bfcaaad0f1af33a0d99985b57395d1a5
Author: William Casarin <jb55@jb55.com>
Date: Thu, 21 Jun 2018 13:05:09 -0700
fix bug
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/val.c b/val.c
@@ -115,14 +115,13 @@ val_serialize(struct val val, u32 *len, u8 *buf, int bufsize) {
int
val_eq(struct val a, struct val b, int require_minimal) {
- u32 alen, blen;
+ u32 alen = 0, blen = 0;
int eq = 0;
static const int tmpsize = 4096;
static u8 tmpa[4096];
static u8 tmpb[4096];
- const u8 *abytes, *bbytes;
// TODO: do I need to serialize to compare?
/* abytes = val_serialize(a, &alen, require_minimal); */
/* bbytes = val_serialize(b, &blen, require_minimal); */