diff --git a/src/bin/e_border.c b/src/bin/e_border.c index fba038b0b..a7f1543fd 100644 --- a/src/bin/e_border.c +++ b/src/bin/e_border.c @@ -553,6 +553,8 @@ void e_border_maximize(E_Border *bd) { E_Zone *zone; + + E_OBJECT_CHECK(bd); if ((bd->shaded) || (bd->shading)) return; if (!bd->maximized) diff --git a/src/bin/e_zone.c b/src/bin/e_zone.c index afdb981cf..1e6a4c75a 100644 --- a/src/bin/e_zone.c +++ b/src/bin/e_zone.c @@ -19,7 +19,6 @@ e_zone_new(E_Container *con, int x, int y, int w, int h) E_Desk *desk; zone = E_OBJECT_ALLOC(E_Zone, _e_zone_free); - memset(zone, 0, sizeof(E_Zone)); if (!zone) return NULL; printf("NEW ZONE! %d %d %d %d\n", x, y, w, h);