]> Nishi Git Mirror - dataworks.git/commitdiff
watcom issue
authornishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Mon, 27 May 2024 04:27:00 +0000 (04:27 +0000)
committernishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Mon, 27 May 2024 04:27:00 +0000 (04:27 +0000)
git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@124 d4a5a174-5a4a-5b4b-b672-37683c10d7d5

Library/exec.c

index 01f07c501363d7ceeb3782475ab88e912230b506..e6add8ea292b789056370ef23b2133cc2e6674a6 100644 (file)
@@ -223,7 +223,10 @@ struct dataworks_db_result* __dataworks_database_execute_code(struct dataworks_d
                                } else {
                                        double dn = 123123;
                                        int64_t in = 123123;
-                                       void* data[3] = {"data", &dn, &in};
+                                       void* data[3];
+                                       data[0] = "data";
+                                       data[1] = &dn;
+                                       data[2] = &in;
                                        struct dataworks_db_result* dbr = dataworks_database_insert_record(db, data, "SSS");
                                        if(dbr->error) {
                                                r->error = true;