From: John Darrington Date: Sat, 15 Sep 2007 00:52:59 +0000 (+0000) Subject: Initialize variables to avoid compiler warnings. X-Git-Tag: v0.6.0~269 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=244083b125577d4bdf08c522de8b1bc5dbdff077;p=pspp-builds.git Initialize variables to avoid compiler warnings. --- diff --git a/src/math/linreg/linreg.c b/src/math/linreg/linreg.c index 6dfeb9db..3b5b50dd 100644 --- a/src/math/linreg/linreg.c +++ b/src/math/linreg/linreg.c @@ -204,7 +204,7 @@ pspp_linreg (const gsl_vector * Y, const gsl_matrix * X, const pspp_linreg_opts * opts, pspp_linreg_cache * cache) { int rc; - gsl_matrix *design; + gsl_matrix *design = NULL; gsl_matrix_view xtx; gsl_matrix_view xm; gsl_matrix_view xmxtx; diff --git a/src/ui/gui/find-dialog.c b/src/ui/gui/find-dialog.c index 63717dfa..4978edaf 100644 --- a/src/ui/gui/find-dialog.c +++ b/src/ui/gui/find-dialog.c @@ -103,8 +103,8 @@ refresh (GObject *obj, const struct find_dialog *fd) static void do_find (GObject *obj, const struct find_dialog *fd) { - casenumber x; - gint column; + casenumber x = -1; + gint column = -1; gint row; gtk_sheet_get_active_cell (fd->data_sheet, &row, NULL);