Fix freeing non-heap object warning from GCC (r=ann).
This commit is contained in:
parent
52ff6fd5f8
commit
b3d64d1121
@ -267,7 +267,7 @@ int pc_compile(int argc, char *argv[])
|
||||
tname=NULL;
|
||||
sname=NULL;
|
||||
#else
|
||||
char buffer[] = P_tmpdir "/pawn.XXXXXX";
|
||||
char *buffer = strdup(P_tmpdir "/pawn.XXXXXX");
|
||||
close(mkstemp(buffer));
|
||||
tname=buffer;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user