Debug: Fix compilation error when using RANDOM_DEBUG
This commit is contained in:
@@ -174,7 +174,6 @@ void debug_print(const char *dbg, const char *buf)
|
|||||||
unsigned int num = 0;
|
unsigned int num = 0;
|
||||||
int pid = getpid();
|
int pid = getpid();
|
||||||
for(;;) {
|
for(;;) {
|
||||||
free(fn);
|
|
||||||
std::string fn = stdstr_fmt("random-out-%d-%u.log", pid, num);
|
std::string fn = stdstr_fmt("random-out-%d-%u.log", pid, num);
|
||||||
f = FioFOpenFile(fn.c_str(), "wx", AUTOSAVE_DIR);
|
f = FioFOpenFile(fn.c_str(), "wx", AUTOSAVE_DIR);
|
||||||
if (f == nullptr && errno == EEXIST) {
|
if (f == nullptr && errno == EEXIST) {
|
||||||
|
|||||||
Reference in New Issue
Block a user