Fix the build

This commit is contained in:
Justine Tunney 2024-08-26 16:44:05 -07:00
parent 12ecaf8650
commit 610c951f71
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
10 changed files with 14 additions and 8 deletions

View file

@ -1568,7 +1568,7 @@ bool GenerateScore(struct Asset *out, long secs, long cash) {
int rc;
char *sb = 0;
sqlite3 *db = 0;
/* size_t sblen = 0; */
size_t sblen = 0;
struct Asset a = {0};
sqlite3_stmt *stmt = 0;
bool namestate = false;
@ -1614,7 +1614,7 @@ bool GenerateScore(struct Asset *out, long secs, long cash) {
namestate = true;
CHECK_SYS(appendf(
&a.data.p, "\"%s\":[\n",
"wut"/* EscapeJsStringLiteral(&sb, &sblen, strcpy(name1, name2), -1, 0) */));
EscapeJsStringLiteral(&sb, &sblen, strcpy(name1, name2), -1, 0)));
} else {
// name repeated
CHECK_SYS(appends(&a.data.p, ",\n"));