[mlpack] 151/207: fix bug--should not use empty string to open file

Barak A. Pearlmutter barak+git at pearlmutter.net
Thu Mar 23 17:53:49 UTC 2017


This is an automated email from the git hooks/post-receive script.

bap pushed a commit to branch master
in repository mlpack.

commit 2c5af4d4876fe70410283d7392fd3e238772fe94
Author: stereomatchingkiss <stereomatchingkiss at gmail.com>
Date:   Sun Jun 5 13:20:50 2016 +0800

    fix bug--should not use empty string to open file
---
 src/mlpack/core/data/load_csv.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mlpack/core/data/load_csv.hpp b/src/mlpack/core/data/load_csv.hpp
index 34438b7..44ffa58 100644
--- a/src/mlpack/core/data/load_csv.hpp
+++ b/src/mlpack/core/data/load_csv.hpp
@@ -33,7 +33,7 @@ public:
     extension(Extension(file)),
     fatalIfOpenFail(fatal),
     fileName(std::move(file)),
-    inFile(file)
+    inFile(fileName)
   {
     CanOpen();
   }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mlpack.git



More information about the debian-science-commits mailing list