Initialize temp_rect

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
Sebastian Ramacher 2014-05-28 17:31:16 +02:00
parent 86b5d1d0a2
commit ae9bec1bc3

View File

@ -322,7 +322,7 @@ handle_method_call(GDBusConnection* UNUSED(connection),
return;
}
zathura_rectangle_t temp_rect;
zathura_rectangle_t temp_rect = { 0, 0, 0, 0 };
while (g_variant_iter_loop(iter, "(dddd)", &temp_rect.x1, &temp_rect.x2,
&temp_rect.y1, &temp_rect.y2)) {
zathura_rectangle_t* rect = g_try_malloc0(sizeof(zathura_rectangle_t));