diff --git a/src/events/SDL_pen.c b/src/events/SDL_pen.c index 78e6b617c..3f545e56e 100644 --- a/src/events/SDL_pen.c +++ b/src/events/SDL_pen.c @@ -1058,6 +1058,7 @@ int SDL_PenModifyForWacomID(SDL_Pen *pen, Uint32 wacom_devicetype_id, Uint32 *ax } if (!name) { + *axis_flags = 0; return SDL_FALSE; }