diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-12-13 11:52:16 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-12-13 11:52:16 +0000 |
commit | 8376637b6a0026e0a13bb0b67979c817715d1dec (patch) | |
tree | 22cb49f765bb9a6a7b4a62bba1dc777efb228156 | |
parent | 2286ffb9dbfd8e07f0017a1c20050e6f823e23aa (diff) | |
download | gnunet-gtk-8376637b6a0026e0a13bb0b67979c817715d1dec.tar.gz gnunet-gtk-8376637b6a0026e0a13bb0b67979c817715d1dec.zip |
-fixing 2005
-rw-r--r-- | src/statistics/gtk_statistics.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/statistics/gtk_statistics.c b/src/statistics/gtk_statistics.c index ab64ca56..29d0b342 100644 --- a/src/statistics/gtk_statistics.c +++ b/src/statistics/gtk_statistics.c | |||
@@ -222,11 +222,13 @@ gtk_statistics_add_line (GtkStatistics *statistics, | |||
222 | priv->values = g_realloc (priv->values, | 222 | priv->values = g_realloc (priv->values, |
223 | sizeof (struct ValueHistory*) * (1 + priv->num_values)); | 223 | sizeof (struct ValueHistory*) * (1 + priv->num_values)); |
224 | priv->values[priv->num_values++] = vh = g_malloc (sizeof (struct ValueHistory)); | 224 | priv->values[priv->num_values++] = vh = g_malloc (sizeof (struct ValueHistory)); |
225 | vh->id = strdup (id); | 225 | vh->id = strdup (id); |
226 | vh->label = strdup (label); | 226 | vh->label = strdup (label); |
227 | vh->red = c.red / 65535.0; | 227 | vh->red = c.red / 65535.0; |
228 | vh->green = c.green / 65535.0; | 228 | vh->green = c.green / 65535.0; |
229 | vh->blue = c.blue / 65535.0; | 229 | vh->blue = c.blue / 65535.0; |
230 | vh->last_history_offset = 0; | ||
231 | vh->history_size = 0; | ||
230 | } | 232 | } |
231 | 233 | ||
232 | 234 | ||