Mika Laitio 1e21daf781 fix if comparison with uninitialized member value
Fix the valgrind warning from the use of an uninitialized
member variable by setting the DEFAULT value for
m_currentNativeCursor in the constructors member initializer list.
This fixes the following warning caused by the SetNativeCursorStyle
method call later on the constructor.

==66660== Warning: client switching stacks?  SP change: 0x1ffeffee40 --> 0xdf7efe8
==66660==          to suppress, use: --max-stackframe=137187819096 or greater
==66660== Conditional jump or move depends on uninitialised value(s)
==66660==    at 0x13F0764E: UnknownInlinedFun (graphics_abstraction_layer.cpp:276)
==66660==    by 0x13F0764E: KIGFX::GAL::GAL(KIGFX::GAL_DISPLAY_OPTIONS&) (graphics_abstraction_layer.cpp:78)

Error can be reproduced and checked from the log.txt
by launching kicad with valgrind command
"valgrind --leak-check=full kicad > log.txt 2>&1"
and then launching the footprint editor from the kicad main dialog.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/8784

Signed-off-by: Mika Laitio <lamikr@gmail.com>
2021-07-15 16:18:24 +00:00
..
2021-07-08 08:33:08 -04:00
2021-07-09 10:56:35 -04:00
2021-07-13 17:10:13 -04:00
2021-06-01 20:18:24 +00:00
2021-07-14 15:47:32 -04:00
2021-03-19 23:06:19 +00:00
2021-04-28 23:24:19 -04:00
2021-06-17 18:23:58 +01:00
2021-07-14 15:47:32 -04:00
2021-07-14 15:47:32 -04:00
2021-06-14 07:11:17 -04:00
2020-11-06 00:37:57 +00:00
2020-10-25 00:02:52 -04:00
2021-06-08 21:56:00 -04:00
2021-07-06 13:32:34 -04:00
2021-06-07 14:32:27 -04:00
2021-05-01 08:22:35 -04:00
2020-12-19 13:55:28 -05:00
2021-07-14 15:47:32 -04:00
2020-10-23 21:49:42 -04:00
2021-06-07 18:38:52 -04:00
2020-10-25 00:02:52 -04:00
2020-11-18 19:50:36 +00:00
2020-07-21 00:00:36 +00:00
2020-11-18 19:50:36 +00:00
2021-06-23 23:55:54 +01:00
2021-05-05 22:58:40 +01:00
2021-07-08 00:19:31 +01:00