Skip to content

Commit

Permalink
Fix a couple more issues in android-gen.c; bump version
Browse files Browse the repository at this point in the history
In particular I suspect the uninitialised struct frontend had a non-zero env
that we tried to call into on the Pre Launch Report devices. Why this never
happens on the devices/emulators in front of me is a mystery.
  • Loading branch information
chrisboyle committed May 21, 2022
1 parent 7327c97 commit 75f3b57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ android {
targetSdkVersion 32
minSdkVersion 19
applicationId "name.boyle.chris.sgtpuzzles"
versionCode 132
versionCode 133
versionName timestamp(false)
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
resValue "string", "issues_url", issuesURL()
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/jni/executable/android-gen.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ void serialise_write(__attribute__((unused)) void *ctx, const void *buf, int len
const struct drawing_api null_drawing = {
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL,
NULL, NULL, NULL, NULL, NULL, NULL,
};

int main(int argc, const char *argv[]) {
Expand Down Expand Up @@ -42,6 +42,7 @@ int main(int argc, const char *argv[]) {
}

frontend *fe = snew(frontend);
memset(fe, 0, sizeof(frontend));
fe->me = midend_new(fe, thegame, &null_drawing, fe);

const char* error = NULL;
Expand Down

0 comments on commit 75f3b57

Please sign in to comment.