hermet pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=34fa84a1711599ac02239b7d32cb9b24bad350a0

commit 34fa84a1711599ac02239b7d32cb9b24bad350a0
Author: Jongmin Lee <[email protected]>
Date:   Mon Oct 7 15:59:18 2019 +0900

    ecore : fix incorrect size of expression for coverity
    
    Summary: correct bad use of sizeof function (detected by coverity tool)
    
    Test Plan: N/A
    
    Reviewers: Hermet, woohyun, kimcinoo, cedric, jsuya
    
    Reviewed By: Hermet
    
    Subscribers: cedric, #reviewers, #committers
    
    Tags: #efl
    
    Differential Revision: https://phab.enlightenment.org/D10281
---
 src/lib/ecore/efl_boolean_model.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/ecore/efl_boolean_model.c 
b/src/lib/ecore/efl_boolean_model.c
index 4c440f1ffb..3d9aef668d 100644
--- a/src/lib/ecore/efl_boolean_model.c
+++ b/src/lib/ecore/efl_boolean_model.c
@@ -105,7 +105,7 @@ _storage_lookup(Efl_Boolean_Model_Data *pd,
         lookup->offset = v->last ? v->last->offset + v->last->length + 1 : 0;
         lookup->length = sizeof (lookup->buffer) * 8; // Number of bits in the 
buffer
         // Initialize the buffer to the right default value
-        if (default_value) memset(&lookup->buffer[0], *default_value, sizeof 
(&lookup->buffer));
+        if (default_value) memset(&lookup->buffer[0], *default_value, sizeof 
(lookup->buffer));
 
         v->buffers_root = eina_rbtree_inline_insert(v->buffers_root, 
EINA_RBTREE_GET(lookup),
                                                     
EINA_RBTREE_CMP_NODE_CB(_storage_range_cmp), NULL);

-- 


Reply via email to