Fix bug that we initialize g->arg* too late.
Before this change, we reference g->arg* when calling
emulator_initUserInterface ->
ui_init -> skin_winsys_start -> new Q*Application
That's before we set them in skin_winsys_enter_main_loop
This cause crashing when passing lots of arguments to emulator.
To reproduce:
emulator -avd M -gpu mesa -qemu -append 1 -append 2 -append 3 -append 4
-append 5 -append 6 -append 7 \
-append 8 -append 9 -append 10 -append 11 -append 12
Bug: 31962884
Change-Id: I42a4081f40af07b461c8aaf3a23ba441b0680577
Signed-off-by: Tao Wu <lepton@google.com>
1 file changed