use sizeof double to allocate means fc11-i386-build89 fc11-x64-build86 lenny-x64-build104 sid-i386-build156
authorJason H Stover <jhs@math.gcsu.edu>
Thu, 4 Feb 2010 23:01:45 +0000 (18:01 -0500)
committerJason H Stover <jhs@math.gcsu.edu>
Thu, 4 Feb 2010 23:01:45 +0000 (18:01 -0500)
src/language/stats/regression.q

index cb126d09655f5c700f9dd432c0df8f36f8b7a1ef..4841c66ea536a4a05c5efd9c30643c88ba51bb50 100644 (file)
@@ -905,7 +905,7 @@ run_regression (struct casereader *input, struct cmd_regression *cmd,
       dict_get_vars (dict, &v_variables, &n_variables, 0);
     }
   vars = xnmalloc (n_variables, sizeof (*vars));
-  means  = xnmalloc (n_variables, sizeof (*vars));
+  means  = xnmalloc (n_variables, sizeof (*means));
   cov = covariance_1pass_create (n_variables, v_variables,
                                 dict_get_weight (dict), MV_ANY);