mirror of
https://github.com/scottdraves/flam3.git
synced 2025-01-21 05:20:05 -05:00
Merge pull request #9 from FractalBrew/fix-win32
Fix an undefined variable on windows builds.
This commit is contained in:
commit
e080154353
2
flam3.c
2
flam3.c
@ -1639,7 +1639,7 @@ char *flam3_print_to_string(flam3_genome *cp) {
|
|||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
// This might be a permissions problem, so let's try to open a
|
// This might be a permissions problem, so let's try to open a
|
||||||
// tempfile in the env var TEMP's area instead
|
// tempfile in the env var TEMP's area instead
|
||||||
tmp_path = getenv("TEMP");
|
char* tmp_path = getenv("TEMP");
|
||||||
|
|
||||||
if (tmp_path != NULL) {
|
if (tmp_path != NULL) {
|
||||||
strcpy(tmpnam, tmp_path);
|
strcpy(tmpnam, tmp_path);
|
||||||
|
Loading…
Reference in New Issue
Block a user