From: nishi Date: Sun, 21 Apr 2024 00:05:33 +0000 (+0000) Subject: db X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=d27960843829e2c33b0a8e65e796ae602a1d507f;p=mandshurica.git db git-svn-id: file:///raid/svn-main/nishi-mandshurica/trunk@58 f982e544-4a7d-3444-ad1a-fde59a2a69f1 --- diff --git a/Mandshurica/db.c b/Mandshurica/db.c index f47c23e..4a93002 100644 --- a/Mandshurica/db.c +++ b/Mandshurica/db.c @@ -37,6 +37,7 @@ #include struct ms_db* mandshurica_db_open(const char* path) { + FILE* fp = fopen(path, "r+b"); if(fp != NULL) { struct ms_db* db = malloc(sizeof(*db));