This commit is contained in:
jl777
2016-10-27 20:46:21 -03:00
parent f82834d805
commit 2845c3efb8

View File

@@ -1115,9 +1115,7 @@ void komodo_configfile(char *symbol,uint16_t port)
printf("Created (%s)\n",fname); printf("Created (%s)\n",fname);
} else printf("Couldnt create (%s)\n",fname); } else printf("Couldnt create (%s)\n",fname);
} }
else else fclose(fp);
{
fclose(fp);
strcpy(fname,GetDataDir(false).string().c_str()); strcpy(fname,GetDataDir(false).string().c_str());
#ifdef WIN32 #ifdef WIN32
while ( fname[strlen(fname)-1] != '\\' ) while ( fname[strlen(fname)-1] != '\\' )
@@ -1154,7 +1152,6 @@ void komodo_configfile(char *symbol,uint16_t port)
fclose(fp); fclose(fp);
} else printf("couldnt open.(%s)\n",fname); } else printf("couldnt open.(%s)\n",fname);
} }
}
void lock_queue(queue_t *queue) void lock_queue(queue_t *queue)
{ {