Initialise label for piechart slices.
authorJohn Darrington <jmd@pc-188.(none)>
Fri, 8 Aug 2008 01:13:07 +0000 (09:13 +0800)
committerJohn Darrington <jmd@pc-188.(none)>
Fri, 8 Aug 2008 01:13:07 +0000 (09:13 +0800)
(Closes bug #24014

src/language/stats/frequencies.q

index e7509052b05b2aa93dfadbe3eb72a6cc97383e35..4f26f93d18c9188182de73d6f4912c4755f3a577 100644 (file)
@@ -1499,6 +1499,7 @@ freq_tab_to_slice_array(const struct freq_tab *frq_tab,
     {
       const struct freq *frq = &frq_tab->valid[i];
 
+      ds_init_empty (&slices[i].label);
       var_append_value_name (var, frq->value, &slices[i].label);
       slices[i].magnetude = frq->count;
     }