forked from github/server
anerror in this bugfix was found by a lua test. sweet!
This commit is contained in:
parent
3bf5ba14bb
commit
b3edd8dc5a
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ static int tolua_storage_create(lua_State * L)
|
||||||
FILE * F;
|
FILE * F;
|
||||||
|
|
||||||
F = fopen(filename, type);
|
F = fopen(filename, type);
|
||||||
if (!F) {
|
if (F) {
|
||||||
gamedata *data = (gamedata *)calloc(1, sizeof(gamedata));
|
gamedata *data = (gamedata *)calloc(1, sizeof(gamedata));
|
||||||
storage *store = (storage *)calloc(1, sizeof(storage));
|
storage *store = (storage *)calloc(1, sizeof(storage));
|
||||||
data->store = store;
|
data->store = store;
|
||||||
|
|
Loading…
Reference in a new issue