diff src/paranormal/xform.c @ 188:0d826917c56f trunk

[svn] - 64-bit safety (pass 1 of 2)
author nenolod
date Thu, 02 Nov 2006 18:22:02 -0800
parents adf9f4b26039
children 772ad5bc7050
line wrap: on
line diff
--- a/src/paranormal/xform.c	Thu Nov 02 02:35:04 2006 -0800
+++ b/src/paranormal/xform.c	Thu Nov 02 18:22:02 2006 -0800
@@ -101,7 +101,7 @@
     "increased (before scaling)", OPT_TYPE_FLOAT, { fval: 0.0 } },
   { "r_scale", "The amount by which the r coordinate of each pixel will "
     "be scaled", OPT_TYPE_FLOAT, { fval: 1.0 } },
-  { 0 }
+  { NULL }
 };
 
 struct xform_spin_data
@@ -146,7 +146,7 @@
       if (d->vfield)
 	g_free (d->vfield);
 
-      d->vfield = g_malloc (sizeof(struct xform_vector)
+      d->vfield = g_malloc0 (sizeof(struct xform_vector)
 			    * d->width * d->height);
 
       for (j=-(pn_image_data->height>>1)+1; j<=pn_image_data->height>>1; j++)
@@ -196,7 +196,7 @@
     OPT_TYPE_FLOAT, { fval: 1 } },
   { "mod_speed", "The maximum number of pixels by which base_speed"
     " will be modified", OPT_TYPE_FLOAT, { fval: 1 } },
-  { 0 }
+  { NULL }
 };
 
 struct xform_ripple_data
@@ -297,7 +297,7 @@
   { "mod_scale", "The maximum amount that should be "
     "added to the base_scale to create the 'bump' effect",
     OPT_TYPE_FLOAT, { fval: .1 } },
-  { 0 }
+  { NULL }
 };
 
 struct xform_bump_spin_data