Page MenuHomePhabricator

Ecore: Use calloc() to initialize Ecore_Event_Mouse_XXXX
ClosedPublic

Authored by ohduna on Apr 19 2016, 7:37 PM.

Details

Summary

To ensure initialize all fields of Ecore_Event_Mouse_XXX,
use calloc() instead of malloc().

Test Plan

N/A

Diff Detail

Repository
rEFL core/efl
Branch
work
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 1773
Build 1838: arc lint + arc unit
ohduna updated this revision to Diff 8955.Apr 19 2016, 7:37 PM
ohduna retitled this revision from to Ecore: Use calloc() to initialize Ecore_Event_Mouse_XXXX.
ohduna updated this object.
ohduna edited the test plan for this revision. (Show Details)
ohduna added subscribers: JHyun, input.hacker.

The same job about Ecore_Event_Key is already done.
https://git.enlightenment.org/core/efl.git/commit/?id=0ef41604e88b8a8224818824217ebc09c93789d5
Now, we ensure that all fields in Ecore_Event_XXX(Mouse/Key) will be properly initialized.

devilhorns accepted this revision.Apr 20 2016, 5:33 AM
devilhorns edited edge metadata.
This revision is now accepted and ready to land.Apr 20 2016, 5:33 AM
devilhorns closed this revision.Apr 20 2016, 5:38 AM