[evince] dvi: Initialise variables to prevent warning



commit 75f8ea0f2032fc9736c597d86029d988803ae157
Author: astian <astian eclipso at>
Date:   Tue Aug 1 16:27:00 2017 +0000

    dvi: Initialise variables to prevent warning
    
    They were never used uninitialised but GCC couldn't quite see that.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=785759

 backend/dvi/dvi-document.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/backend/dvi/dvi-document.c b/backend/dvi/dvi-document.c
index cbb3f8a..4a896e2 100644
--- a/backend/dvi/dvi-document.c
+++ b/backend/dvi/dvi-document.c
@@ -363,6 +363,7 @@ hsb2rgb (float h, float s, float v, guchar *red, guchar *green, guchar *blue)
         p = v * (1 - s);
         q = v * (1 - (s * f));
         t = v * (1 - (s * (1 - f)));
+        r = g = b = 0;
 
        if (i == 0) {
                r = v;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]