ajwillia-ms pushed a commit to branch master.

http://git.enlightenment.org/tools/edi.git/commit/?id=843e222203088f0d2c5bb85d6da34244b97fba29

commit 843e222203088f0d2c5bb85d6da34244b97fba29
Author: Andy Williams <a...@andywilliams.me>
Date:   Sun Jan 17 17:51:13 2016 +0000

    Fix maybe-uninitialized warnings
---
 elm_code/src/lib/elm_code_text.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/elm_code/src/lib/elm_code_text.c b/elm_code/src/lib/elm_code_text.c
index 7e7e994..901b6ae 100644
--- a/elm_code/src/lib/elm_code_text.c
+++ b/elm_code/src/lib/elm_code_text.c
@@ -75,7 +75,7 @@ elm_code_text_strnpos(const char *content, unsigned int 
length, const char *sear
 EAPI int
 elm_code_line_text_strpos(Elm_Code_Line *line, const char *search, int offset)
 {
-   unsigned int length;
+   unsigned int length = 0;
    const char *content;
 
    content = elm_code_line_text_get(line, &length);
@@ -212,7 +212,8 @@ elm_code_line_text_remove(Elm_Code_Line *line, unsigned int 
position, int length
 
 EAPI void elm_code_line_text_leading_whitespace_strip(Elm_Code_Line *line)
 {
-   unsigned int length, leading;
+   unsigned int length = 0;
+   unsigned int leading;
    const char *content;
 
    content = elm_code_line_text_get(line, &length);
@@ -225,7 +226,8 @@ EAPI void 
elm_code_line_text_leading_whitespace_strip(Elm_Code_Line *line)
 
 EAPI void elm_code_line_text_trailing_whitespace_strip(Elm_Code_Line *line)
 {
-   unsigned int length, trailing;
+   unsigned int length = 0;
+   unsigned int trailing;
    const char *content;
 
    content = elm_code_line_text_get(line, &length);

-- 


Reply via email to