quick-cluster.c Fix uninitialised variables.
authorJohn Darrington <john@darrington.wattle.id.au>
Thu, 13 Jun 2019 15:03:00 +0000 (17:03 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Thu, 13 Jun 2019 15:06:28 +0000 (17:06 +0200)
Gcc 7.4 issued a warning about this.

src/language/stats/quick-cluster.c

index 45165f1705a15a74100d6e73234023b8659888a7..fe9f40a0ae63e1f510fb40e7d51d3ccd2646abeb 100644 (file)
@@ -651,8 +651,8 @@ quick_cluster_show_membership (struct Kmeans *kmeans,
                               const struct casereader *reader,
                               struct qc *qc)
 {
-  struct pivot_table *table;
-  struct pivot_dimension *cases;
+  struct pivot_table *table = NULL;
+  struct pivot_dimension *cases = NULL;
   if (qc->print_cluster_membership)
     {
       table = pivot_table_create (N_("Cluster Membership"));