ImmediateInterpreter: initialize prev_gesture_type_

The first time SyncInterpretImpl was called after the interpreter was
created, the unitialized value of prev_gesture_type_ would be loaded
into memory. This often caused a Clang's undefined behaviour sanitizer
(UBSan) to abort with a load-invalid-value error.

BUG=b:313902875
TEST=On a Pixel Tablet, connect a touchpad and check it doesn't crash
     (repeat a few times)

Change-Id: I8f3f588c026d71aee58a0aa5a5adbe20ad6a100a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/gestures/+/5079347
Tested-by: Harry Cutts <hcutts@chromium.org>
Reviewed-by: Sean O'Brien <seobrien@chromium.org>
Commit-Queue: Sean O'Brien <seobrien@chromium.org>
Auto-Submit: Harry Cutts <hcutts@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Commit-Queue: Harry Cutts <hcutts@chromium.org>
1 file changed