From ed187a8bd9340788bca2ee84b93c965f38c8821f Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Mon, 9 Apr 2012 16:44:21 +0100 Subject: Fix use of uninitialised variable. In my previous commit, I forgot to initialise the variable before using it. Thanks to Bas Weelinck for spotting this. --- fitz/base_memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fitz') diff --git a/fitz/base_memory.c b/fitz/base_memory.c index a30d75db..3fdaff58 100644 --- a/fitz/base_memory.c +++ b/fitz/base_memory.c @@ -264,7 +264,7 @@ static int find_context(fz_context *ctx) return i; if (fz_lock_debug_contexts[i] == NULL) { - int gottit; + int gottit = 0; /* We've not locked on this context before, so use * this one for this new context. We might have other * threads trying here too though so, so claim it -- cgit v1.2.3