aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/scalar.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/scalar.c b/src/scalar.c
index 6732422..708c45c 100644
--- a/src/scalar.c
+++ b/src/scalar.c
@@ -350,7 +350,10 @@ int xtract_spread(const float *data, const int N, const void *argv, float *resul
int n = N;
- float num = 0.f, den = 0.f, temp;
+ float num = 0.f, den = 0.f, temp = 0.f;
+
+ if(argv == NULL)
+ return XTRACT_BAD_ARGV;
while(n--){
temp = n - *(float *)argv;