diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-05-11 04:27:43 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-05-11 04:27:43 +0000 |
commit | 650e266a61717c74ec46c090780afa255ca15a51 (patch) | |
tree | 295d49562fdbc4dd833313e5f55de6f3557e8637 /numpy/core/blasdot | |
parent | e8afda1a687cd786cffaaf8e8a287311976dee60 (diff) | |
download | numpy-650e266a61717c74ec46c090780afa255ca15a51.tar.gz |
Fix ticket #109
Diffstat (limited to 'numpy/core/blasdot')
-rw-r--r-- | numpy/core/blasdot/_dotblas.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/blasdot/_dotblas.c b/numpy/core/blasdot/_dotblas.c index 56e901310..94a725ed8 100644 --- a/numpy/core/blasdot/_dotblas.c +++ b/numpy/core/blasdot/_dotblas.c @@ -352,7 +352,7 @@ dotblas_matrixproduct(PyObject *dummy, PyObject *args) if (ret == NULL) goto fail; numbytes = PyArray_NBYTES(ret); memset(ret->data, 0, numbytes); - if (numbytes==0) { + if (numbytes==0 || l == 0) { Py_DECREF(ap1); Py_DECREF(ap2); return PyArray_Return(ret); |