[babl/wip/msvc] babl/babl-space.c: Don't use empty arrays



commit 00638800d17be00f4eb5f6266b9d4c3d5c53edc9
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Mon Jan 20 16:39:14 2020 +0800

    babl/babl-space.c: Don't use empty arrays
    
    Visual Studio does not support this, although now it supports many parts of C99

 babl/babl-space.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/babl/babl-space.c b/babl/babl-space.c
index 90c0a50f9..586ebcea4 100644
--- a/babl/babl-space.c
+++ b/babl/babl-space.c
@@ -111,8 +111,8 @@ babl_matrix_equalize (double *in_mat)
                    0.0,  0.0,  0.0,   // black
                    0.5,  0.5,  0.5,   // gray
                    0.33, 0.33, 0.33}; // grey
-  double out[12] = {};
-  double lab[12] = {};
+  double out[12] = {0,};
+  double lab[12] = {0,};
   double best_error = 1000000.0;
   int i;
 


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