Skip to content

Commit 8bc82cd

Browse files
da-philTurboGit
authored andcommitted
masks: address maybe uninitialized compiler warning
Although it is actually a false-positive warning by GCC12 in -O3 mode, which is not observed in any more modern toolchain on any optimization level.
1 parent 5b37e21 commit 8bc82cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/develop/masks/masks.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1343,7 +1343,7 @@ gboolean dt_masks_events_mouse_moved(dt_iop_module_t *module,
13431343
// this must be serialized against that read (see history_mutex there).
13441344
_events_lock(darktable.develop);
13451345

1346-
dt_masks_form_gui_t before;
1346+
dt_masks_form_gui_t before = { 0 };
13471347
if(gui) before = *gui;
13481348

13491349
int rep = 0;

0 commit comments

Comments
 (0)