summaryrefslogtreecommitdiff
path: root/src/lib/ecore_cocoa
diff options
context:
space:
mode:
authorDuna Oh <duna.oh@samsung.com>2016-04-20 08:33:20 -0400
committerChris Michael <cpmichael@osg.samsung.com>2016-04-20 08:33:20 -0400
commitfbe4e4b6adcd1fadb22aa838836254673e2bbb86 (patch)
tree56390f69044fd6e44dc1513a7b51fa900036b49f /src/lib/ecore_cocoa
parent115b69fd479a08db2e8b401f28aa6867179e5de3 (diff)
Ecore: Use calloc() to initialize Ecore_Event_Mouse_XXXX
Summary: To ensure initialize all fields of Ecore_Event_Mouse_XXX, use calloc() instead of malloc(). Test Plan: N/A Reviewers: gwanglim, cedric, raster, devilhorns, ManMower, zmike Subscribers: jpeg, input.hacker, JHyun Differential Revision: https://phab.enlightenment.org/D3906
Diffstat (limited to 'src/lib/ecore_cocoa')
-rw-r--r--src/lib/ecore_cocoa/ecore_cocoa.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ecore_cocoa/ecore_cocoa.m b/src/lib/ecore_cocoa/ecore_cocoa.m
index 012fd11fe4..6197d58eed 100644
--- a/src/lib/ecore_cocoa/ecore_cocoa.m
+++ b/src/lib/ecore_cocoa/ecore_cocoa.m
@@ -295,7 +295,7 @@ _ecore_cocoa_feed_events(void *anEvent)
295 Ecore_Event_Mouse_Wheel *ev; 295 Ecore_Event_Mouse_Wheel *ev;
296 float dx, dy = 0; 296 float dx, dy = 0;
297 297
298 ev = malloc(sizeof(Ecore_Event_Mouse_Wheel)); 298 ev = calloc(1, sizeof(Ecore_Event_Mouse_Wheel));
299 if (!ev) return pass; 299 if (!ev) return pass;
300 300
301 if ([event hasPreciseScrollingDeltas]) 301 if ([event hasPreciseScrollingDeltas])