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

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


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

Modified:
   trunk/scipy/signal/newsig.c
Log:
Set default value for optional arguments of lfilter.

Modified: trunk/scipy/signal/newsig.c
===================================================================
--- trunk/scipy/signal/newsig.c	2008-11-04 08:32:02 UTC (rev 4984)
+++ trunk/scipy/signal/newsig.c	2008-11-04 08:32:23 UTC (rev 4985)
@@ -14,11 +14,13 @@
 {
 	PyObject *b, *a, *X, *Vi;
 	PyArrayObject *arY, *arb, *ara, *arX, *arVi, *arVf;
-	int axis = -1, typenum, theaxis;
+	int axis, typenum, theaxis;
 	char *ara_ptr, input_flag = 0;
 	intp na, nb;
 	BasicFilterFunction *basic_filter;
 
+        axis = -1;
+        Vi = NULL;
 	if (!PyArg_ParseTuple(args, "OOO|iO", &b, &a, &X, &axis, &Vi)) {
 		return NULL;
 	}



More information about the Scipy-svn mailing list