summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bin/efreet/efreetd_cache.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/bin/efreet/efreetd_cache.c b/src/bin/efreet/efreetd_cache.c
index 0d588970c7..6c43749dea 100644
--- a/src/bin/efreet/efreetd_cache.c
+++ b/src/bin/efreet/efreetd_cache.c
@@ -411,9 +411,11 @@ fill_list(const char *file, Eina_List **l)
411 if (!it) goto error; 411 if (!it) goto error;
412 EINA_ITERATOR_FOREACH(it, line) 412 EINA_ITERATOR_FOREACH(it, line)
413 { 413 {
414 const char *end; 414 if (line->end > line->start)
415 end = line->end - 1; 415 {
416 *l = eina_list_append(*l, eina_stringshare_add_length(line->start, end - line->start)); 416 const char *end = line->end - 1;
417 *l = eina_list_append(*l, eina_stringshare_add_length(line->start, end - line->start));
418 }
417 } 419 }
418 eina_iterator_free(it); 420 eina_iterator_free(it);
419error: 421error: