pspp-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pspp-cvs] Changes to pspp/src/oneway.q


From: Ben Pfaff
Subject: [Pspp-cvs] Changes to pspp/src/oneway.q
Date: Wed, 26 Oct 2005 01:07:23 -0400

Index: pspp/src/oneway.q
diff -u pspp/src/oneway.q:1.22 pspp/src/oneway.q:1.23
--- pspp/src/oneway.q:1.22      Mon Oct 24 02:51:32 2005
+++ pspp/src/oneway.q   Wed Oct 26 05:06:14 2005
@@ -157,7 +157,7 @@
   size_t i;
   short *bad_contrast ; 
 
-  bad_contrast = xmalloc ( sizeof (short) * cmd.sbc_contrast );
+  bad_contrast = xnmalloc (cmd.sbc_contrast, sizeof *bad_contrast);
 
   /* Check the sanity of the given contrast values */
   for (i = 0 ; i < cmd.sbc_contrast ; ++i ) 
@@ -949,9 +949,7 @@
 
          if ( ! gs ) 
            {
-             gs = (struct group_statistics *) 
-               xmalloc (sizeof(struct group_statistics));
-
+             gs = xmalloc (sizeof *gs);
              gs->id = *indep_val;
              gs->sum=0;
              gs->n=0;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]