summaryrefslogtreecommitdiff
path: root/src/tests
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/tests
parentc12008b4d0118232aca3f45e3e77137acef75078 (diff)
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/tests')
-rw-r--r--src/tests/eet/eet_test_common.c3
-rw-r--r--src/tests/eina/eina_test_matrixsparse.c1
-rw-r--r--src/tests/evas/evas_test_mesh.c1
3 files changed, 3 insertions, 2 deletions
diff --git a/src/tests/eet/eet_test_common.c b/src/tests/eet/eet_test_common.c
index dba9ab1..b9011c7 100644
--- a/src/tests/eet/eet_test_common.c
+++ b/src/tests/eet/eet_test_common.c
@@ -70,8 +70,7 @@ func7(EINA_UNUSED const Eina_Hash *hash,
70 val = data; 70 val = data;
71 if (!val) 71 if (!val)
72 *res = 1; 72 *res = 1;
73 73 else if (*val != 7)
74 if (*val != 7)
75 *res = 1; 74 *res = 1;
76 75
77 return EINA_TRUE; 76 return EINA_TRUE;
diff --git a/src/tests/eina/eina_test_matrixsparse.c b/src/tests/eina/eina_test_matrixsparse.c
index c1aba54..5c8b548 100644
--- a/src/tests/eina/eina_test_matrixsparse.c
+++ b/src/tests/eina/eina_test_matrixsparse.c
@@ -208,6 +208,7 @@ EFL_START_TEST(eina_test_simple)
208 fail_if(test1 != NULL); 208 fail_if(test1 != NULL);
209 209
210 test1 = eina_matrixsparse_data_idx_get(matrix, 5, 3); 210 test1 = eina_matrixsparse_data_idx_get(matrix, 5, 3);
211 fail_if(!test1);
211 fail_if(*test1 != data[5][3]); 212 fail_if(*test1 != data[5][3]);
212 213
213 r = eina_matrixsparse_column_idx_clear(matrix, 3); 214 r = eina_matrixsparse_column_idx_clear(matrix, 3);
diff --git a/src/tests/evas/evas_test_mesh.c b/src/tests/evas/evas_test_mesh.c
index d5777ed..95138e2 100644
--- a/src/tests/evas/evas_test_mesh.c
+++ b/src/tests/evas/evas_test_mesh.c
@@ -92,6 +92,7 @@ return_zero_frame(Evas_Canvas3D_Mesh_Data *pd)
92 Eina_List *l; 92 Eina_List *l;
93 Evas_Canvas3D_Mesh_Frame *f; 93 Evas_Canvas3D_Mesh_Frame *f;
94 94
95 if (!pd) return NULL;
95 EINA_LIST_FOREACH(pd->frames, l, f) 96 EINA_LIST_FOREACH(pd->frames, l, f)
96 { 97 {
97 if (f->frame == 0) 98 if (f->frame == 0)