[Scipy-svn] r4984 - trunk/scipy/signal

scipy-svn@scip... scipy-svn@scip...
Tue Nov 4 02:32:14 CST 2008


Author: cdavid
Date: 2008-11-04 02:32:02 -0600 (Tue, 04 Nov 2008)
New Revision: 4984

Modified:
   trunk/scipy/signal/newsig.c
Log:
Remove redundant NULL.

Modified: trunk/scipy/signal/newsig.c
===================================================================
--- trunk/scipy/signal/newsig.c	2008-11-04 08:31:47 UTC (rev 4983)
+++ trunk/scipy/signal/newsig.c	2008-11-04 08:32:02 UTC (rev 4984)
@@ -12,11 +12,10 @@
 static PyObject *
 sigtools_linear_filter2(PyObject * dummy, PyObject * args)
 {
-	PyObject       *b = NULL, *a = NULL, *X = NULL, *Vi = NULL;
-	PyArrayObject  *arY = NULL, *arb = NULL, *ara = NULL, *arX = NULL,
-	               *arVi = NULL, *arVf = NULL;
-	int             axis = -1, typenum, theaxis;
-	char           *ara_ptr, input_flag = 0;
+	PyObject *b, *a, *X, *Vi;
+	PyArrayObject *arY, *arb, *ara, *arX, *arVi, *arVf;
+	int axis = -1, typenum, theaxis;
+	char *ara_ptr, input_flag = 0;
 	intp na, nb;
 	BasicFilterFunction *basic_filter;
 
@@ -31,12 +30,7 @@
 		typenum = PyArray_ObjectType(Vi, typenum);
 	}
 
-	arY = NULL;
-	arVf = NULL;
-	ara = NULL;
-	arb = NULL;
-	arX = NULL;
-	arVi = NULL;
+	arY = arVf = arVi = NULL;
 	ara = (PyArrayObject *) PyArray_ContiguousFromObject(a, typenum, 1, 1);
 	arb = (PyArrayObject *) PyArray_ContiguousFromObject(b, typenum, 1, 1);
 	arX = (PyArrayObject *) PyArray_FromObject(X, typenum, 0, 0);



More information about the Scipy-svn mailing list