From: John Darrington Date: Thu, 13 Jun 2019 15:03:00 +0000 (+0200) Subject: quick-cluster.c Fix uninitialised variables. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb2eac52ef9536ba3d6d64292b768c9b3862189f;hp=5328ae3ad39eef3632f83c670e0035f924bfe0d8;p=pspp quick-cluster.c Fix uninitialised variables. Gcc 7.4 issued a warning about this. --- diff --git a/src/language/stats/quick-cluster.c b/src/language/stats/quick-cluster.c index 45165f1705..fe9f40a0ae 100644 --- a/src/language/stats/quick-cluster.c +++ b/src/language/stats/quick-cluster.c @@ -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"));