diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-04-02 14:43:47 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-04-02 14:43:47 (GMT) |
commit | f9404bf68a067b06986cd85855c43795ec578dbd (patch) | |
tree | 57f481aced2c69ddf6ac9766f310be86ebe03f6f /src/glibext | |
parent | d69503d7aeceddc52dfee9481e6a0e8ba9c1fc85 (diff) |
Removed lots of uninitialized uses, mostly in NDEBUG mode.
Diffstat (limited to 'src/glibext')
-rw-r--r-- | src/glibext/gbufferline.c | 2 | ||||
-rw-r--r-- | src/glibext/linesegment.c | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/glibext/gbufferline.c b/src/glibext/gbufferline.c index d8ed7ed..9d2ec51 100644 --- a/src/glibext/gbufferline.c +++ b/src/glibext/gbufferline.c @@ -1273,6 +1273,8 @@ const line_segment *g_buffer_line_get_segment_at(const GBufferLine *line, const if (status) result = g_buffer_line_get_segment_from_coord(line, &coord); + else + result = NULL; return result; diff --git a/src/glibext/linesegment.c b/src/glibext/linesegment.c index 47ad9cc..e802dda 100644 --- a/src/glibext/linesegment.c +++ b/src/glibext/linesegment.c @@ -860,13 +860,13 @@ void draw_line_segment(const line_segment *segment, cairo_t *cr, gint *x, gint y cairo_operator_t old; /* Sauvegarde avant changement */ const rendering_color_t *used_fg; /* Couleur d'impression utile */ - if (segment->text[0] == '\t' && segment->text[1] == '\0') - goto small_sep; - selected = selection_list_has_segment_content(list, segment); width = get_line_segment_width(segment); + if (segment->text[0] == '\t' && segment->text[1] == '\0') + goto small_sep; + /* Fond du texte */ if (selected) { |