src/desktop.c: Fix label error

Fixes "a label can only be part of a statement
and a declaration is not a statement".
This commit is contained in:
Consolatis 2022-03-02 21:28:44 +01:00 committed by Johan Malm
parent db9a808dca
commit 51e02e2afa

View file

@ -315,9 +315,11 @@ desktop_node_and_view_at(struct server *server, double lx, double ly,
*view_area = LAB_SSD_NONE; *view_area = LAB_SSD_NONE;
return NULL; return NULL;
struct view *view;
struct node_descriptor *desc;
has_view_data: has_view_data:
struct node_descriptor *desc = node->data; desc = node->data;
struct view *view = desc->data; view = desc->data;
*view_area = ssd_get_part_type(view, *scene_node); *view_area = ssd_get_part_type(view, *scene_node);
return view; return view;
} }