rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=c8b329105090ac84f32c8dbd6416333ff66d9e7f

commit c8b329105090ac84f32c8dbd6416333ff66d9e7f
Author: Andrii Kroitor <an.kroi...@samsung.com>
Date:   Wed Jul 22 17:48:04 2015 +0300

    History: add missing asserts
---
 src/bin/history/history.c | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/bin/history/history.c b/src/bin/history/history.c
index cdcc91f..5762fd0 100644
--- a/src/bin/history/history.c
+++ b/src/bin/history/history.c
@@ -336,7 +336,8 @@ history_module_del(Evas_Object *source)
    assert(history != NULL);
 
    module = evas_object_data_del(source, HISTORY_MODULE_KEY);
-   if (!module) return false;
+
+   assert(module != NULL);
 
    if (!_module_changes_clear(module))
      {
@@ -432,7 +433,9 @@ history_module_depth_set(Evas_Object *source, unsigned int 
depth)
    assert(source != NULL);
 
    module = evas_object_data_get(source, HISTORY_MODULE_KEY);
-   if (!module) return false;
+
+   assert(module != NULL);
+
    module->depth = depth;
    return true;
 }
@@ -445,7 +448,9 @@ history_module_depth_get(Evas_Object *source)
    assert(source != NULL);
 
    module = evas_object_data_get(source, HISTORY_MODULE_KEY);
-   if (!module) return -1;
+
+   assert(module != NULL);
+
    return (int)module->depth;
 }
 

-- 


Reply via email to