File jpilot-1.6.2-gcc.patch of Package jpilot

--- utils.c
+++ utils.c
@@ -651,7 +651,7 @@
 void set_bg_rgb_clist_row(GtkWidget *clist, int row, int r, int g, int b)
 {
    GtkStyle *old_style, *new_style;
-   GdkColor color;
+   GdkColor color = { 0 };
 
    if ((old_style = gtk_widget_get_style(clist))) {
       new_style = gtk_style_copy(old_style);
@@ -672,7 +672,7 @@
 void set_fg_rgb_clist_cell(GtkWidget *clist, int row, int col, int r, int g, int b)
 {
    GtkStyle *old_style, *new_style;
-   GdkColor fg_color;
+   GdkColor fg_color = { 0 };
 
    if ((old_style = gtk_clist_get_row_style(GTK_CLIST(clist), row)) ||
        (old_style = gtk_widget_get_style(clist))) {
openSUSE Build Service is sponsored by