[arrayfire] 01/34: BUGFIX in assign
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Sun Sep 27 14:46:01 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch dfsg-clean
in repository arrayfire.
commit 4698f12a7ac5209c6e25e3d97f15fe803fdf585c
Author: Shehzan Mohammed <shehzan at arrayfire.com>
Date: Tue Sep 8 17:19:36 2015 -0400
BUGFIX in assign
---
src/api/c/assign.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/api/c/assign.cpp b/src/api/c/assign.cpp
index 3c93ca2..c990889 100644
--- a/src/api/c/assign.cpp
+++ b/src/api/c/assign.cpp
@@ -231,7 +231,7 @@ af_err af_assign_gen(af_array *out,
ARG_ASSERT(2, (ndims == 1) || (ndims == (dim_t)lInfo.ndims()));
if (ndims == 1 && ndims != (dim_t)lInfo.ndims()) {
- af_array tmp_in, tmp_out;
+ af_array tmp_in = 0, tmp_out = 0;
AF_CHECK(af_flat(&tmp_in, lhs));
AF_CHECK(af_assign_gen(&tmp_out, tmp_in, ndims, indexs, rhs_));
AF_CHECK(af_moddims(out, tmp_out, lInfo.ndims(), lInfo.dims().get()));
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git
More information about the debian-science-commits
mailing list