diff --git a/zathura/links.c b/zathura/links.c index 293691c..47c6c38 100644 --- a/zathura/links.c +++ b/zathura/links.c @@ -114,7 +114,7 @@ zathura_link_target_t zathura_link_get_target(zathura_link_t* link) { if (link == NULL) { - zathura_link_target_t target = { 0, NULL, 0, 0, 0, 0, 0, 0 }; + zathura_link_target_t target = { 0, NULL, 0, 0, 0, 0, 0, { 0 } }; return target; } diff --git a/zathura/types.h b/zathura/types.h index bf9b2b1..006890b 100644 --- a/zathura/types.h +++ b/zathura/types.h @@ -179,7 +179,10 @@ typedef struct zathura_link_target_s double right; /**< Right coordinate */ double top; /**< Top coordinate */ double bottom; /**< Bottom coordinate */ - double zoom; /**< Scale */ + union { + double scale; /**< @deprecated Scale */ + double zoom; /**< Zoom */ + }; } zathura_link_target_t; /**