summaryrefslogtreecommitdiff
path: root/src/lib/evas/common
diff options
context:
space:
mode:
authorSubodh Kumar <s7158.kumar@samsung.com>2017-10-09 16:41:19 -0700
committerCedric Bail <cedric@osg.samsung.com>2017-10-09 16:41:23 -0700
commita8e7cf74b14c23fbcd4a2e5d14c7b586635964b3 (patch)
treed89ee98d3327175a4794edeb0c64bc948a575285 /src/lib/evas/common
parenta91a4b4ca52a45e5e9f823ed246d698c4ce3a259 (diff)
evas: there is no effect of variable assignment while clean up.
Summary: There is no effect of assingning a variable while clean up. @fix Reviewers: raster, cedric Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D5272 Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/evas/common')
-rw-r--r--src/lib/evas/common/language/evas_bidi_utils.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/lib/evas/common/language/evas_bidi_utils.c b/src/lib/evas/common/language/evas_bidi_utils.c
index f04c825701..fc9a35dd9b 100644
--- a/src/lib/evas/common/language/evas_bidi_utils.c
+++ b/src/lib/evas/common/language/evas_bidi_utils.c
@@ -242,7 +242,6 @@ evas_bidi_paragraph_props_get(const Eina_Unicode *eina_ustr, size_t len,
242 if (!evas_bidi_is_rtl_str(eina_ustr) && 242 if (!evas_bidi_is_rtl_str(eina_ustr) &&
243 (base_bidi != EVAS_BIDI_PARAGRAPH_RTL)) 243 (base_bidi != EVAS_BIDI_PARAGRAPH_RTL))
244 { 244 {
245 len = -1;
246 goto cleanup; 245 goto cleanup;
247 } 246 }
248 247
@@ -263,7 +262,6 @@ evas_bidi_paragraph_props_get(const Eina_Unicode *eina_ustr, size_t len,
263 char_types = (EvasBiDiCharType *) malloc(sizeof(EvasBiDiCharType) * len); 262 char_types = (EvasBiDiCharType *) malloc(sizeof(EvasBiDiCharType) * len);
264 if (!char_types) 263 if (!char_types)
265 { 264 {
266 len = -2;
267 goto cleanup; 265 goto cleanup;
268 } 266 }
269 fribidi_get_bidi_types(ustr, len, char_types); 267 fribidi_get_bidi_types(ustr, len, char_types);
@@ -271,7 +269,6 @@ evas_bidi_paragraph_props_get(const Eina_Unicode *eina_ustr, size_t len,
271 embedding_levels = (EvasBiDiLevel *)malloc(sizeof(EvasBiDiLevel) * len); 269 embedding_levels = (EvasBiDiLevel *)malloc(sizeof(EvasBiDiLevel) * len);
272 if (!embedding_levels) 270 if (!embedding_levels)
273 { 271 {
274 len = -2;
275 goto cleanup; 272 goto cleanup;
276 } 273 }
277 274
@@ -290,7 +287,6 @@ evas_bidi_paragraph_props_get(const Eina_Unicode *eina_ustr, size_t len,
290 &direction, 287 &direction,
291 embedding_levels + pos)) 288 embedding_levels + pos))
292 { 289 {
293 len = -2;
294 goto cleanup; 290 goto cleanup;
295 } 291 }
296 292
@@ -317,7 +313,6 @@ evas_bidi_paragraph_props_get(const Eina_Unicode *eina_ustr, size_t len,
317 &direction, 313 &direction,
318 embedding_levels + pos)) 314 embedding_levels + pos))
319 { 315 {
320 len = -2;
321 goto cleanup; 316 goto cleanup;
322 } 317 }
323 318
@@ -336,7 +331,6 @@ evas_bidi_paragraph_props_get(const Eina_Unicode *eina_ustr, size_t len,
336 if (!fribidi_get_par_embedding_levels(char_types, len, 331 if (!fribidi_get_par_embedding_levels(char_types, len,
337 &bidi_props->direction, embedding_levels)) 332 &bidi_props->direction, embedding_levels))
338 { 333 {
339 len = -2;
340 goto cleanup; 334 goto cleanup;
341 } 335 }
342 } 336 }