summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-10-18 13:30:10 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-10-18 13:30:10 -0400
commit20b592cef7f231378f67e0f78d5670144b4d3693 (patch)
tree654a5f275f58ca0b68e5c960f22ad4e5225fc65a /src/bin
parentc12008b4d0118232aca3f45e3e77137acef75078 (diff)
downloadefl-20b592cef7f231378f67e0f78d5670144b4d3693.tar.gz
fix various trivial null derefs
Summary: CIDs 1401081, 1401044, 1400983, 1400960, 1400927, 1400799, 1396946, 1396944, 1383851, 1383847, 1382211, 1379921, 1379921 Reviewers: cedric Reviewed By: cedric Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10452
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/edje/edje_cc_script.c1
-rw-r--r--src/bin/elementary/test_genlist.c4
2 files changed, 2 insertions, 3 deletions
diff --git a/src/bin/edje/edje_cc_script.c b/src/bin/edje/edje_cc_script.c
index 2e52ac1c2f..1c972ed7bd 100644
--- a/src/bin/edje/edje_cc_script.c
+++ b/src/bin/edje/edje_cc_script.c
@@ -187,6 +187,7 @@ code_parse_internal(Code *code)
if (tmp->str) free(tmp->str);
free(tmp);
}
+ if (!sym) break;
if ((begin - 1) > body)
{
sym->body = mem_alloc(sizeof(char) * (begin - body - 1));
diff --git a/src/bin/elementary/test_genlist.c b/src/bin/elementary/test_genlist.c
index c3f4d95943..749d04fe63 100644
--- a/src/bin/elementary/test_genlist.c
+++ b/src/bin/elementary/test_genlist.c
@@ -5531,9 +5531,7 @@ test_genlist_show_item(void *data,
g_data->gl = gl;
g_data->itc1 = api->itc1;
- if (g_data)
- max = g_data->max_items;
- else max = 20000;
+ max = g_data->max_items;
for (i = 0; i <= max; i++)
elm_genlist_item_append(gl, api->itc1, (void*)(uintptr_t)i, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);