From 8f37e0f61897d06441a7a9ff7b396d3a8991bc10 Mon Sep 17 00:00:00 2001 From: Nathanael Jones Date: Wed, 11 May 2016 09:58:42 -0700 Subject: [PATCH] Define default value for char *e Visual studio's execution flow analysis insists that (e) could be undefined. I don't see it, but this permits compilation. --- lib/capn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/capn.c b/lib/capn.c index c753e2c..60e139c 100644 --- a/lib/capn.c +++ b/lib/capn.c @@ -318,7 +318,7 @@ static char *struct_ptr(struct capn_segment *s, char *d, int minsz) { static capn_ptr read_ptr(struct capn_segment *s, char *d) { capn_ptr ret = {CAPN_NULL}; uint64_t val; - char *e; + char *e = 0; val = capn_flip64(*(uint64_t*) d);