From be1b9278b6aaab525dc30fdce44eb0408c74a05c Mon Sep 17 00:00:00 2001 From: Dave Townsend Date: Mon, 3 Aug 2015 17:00:00 -0700 Subject: [PATCH] Fix an undefined variable on windows builds. --- flam3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flam3.c b/flam3.c index 8b84629..edb25e1 100644 --- a/flam3.c +++ b/flam3.c @@ -1639,7 +1639,7 @@ char *flam3_print_to_string(flam3_genome *cp) { #ifdef _WIN32 // This might be a permissions problem, so let's try to open a // tempfile in the env var TEMP's area instead - tmp_path = getenv("TEMP"); + char* tmp_path = getenv("TEMP"); if (tmp_path != NULL) { strcpy(tmpnam, tmp_path);