[libfann] 160/242: added fann_error struct places where NULL was given

Christian Kastner chrisk-guest at moszumanska.debian.org
Sat Oct 4 21:10:38 UTC 2014


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

chrisk-guest pushed a commit to tag Version2_0_0
in repository libfann.

commit 91b269544f2b55b906a117e5e7f7926fa1d3e6ed
Author: Steffen Nissen <lukesky at diku.dk>
Date:   Sat Jul 17 20:28:52 2004 +0000

    added fann_error struct places where NULL was given
---
 src/fann_io.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/fann_io.c b/src/fann_io.c
index 11b3275..00abc52 100644
--- a/src/fann_io.c
+++ b/src/fann_io.c
@@ -63,7 +63,7 @@ int fann_save_internal(struct fann *ann, const char *configuration_file, unsigne
 	int retval;
 	FILE *conf = fopen(configuration_file, "w+");
 	if(!conf){
-		fann_error(NULL, FANN_E_CANT_OPEN_CONFIG_W, configuration_file);
+		fann_error((struct fann_error *)ann, FANN_E_CANT_OPEN_CONFIG_W, configuration_file);
 		return -1;
 	}
 	retval = fann_save_internal_fd(ann, conf, configuration_file, save_as_fixed);
@@ -222,7 +222,7 @@ void fann_save_train_internal(struct fann_train_data* data, char *filename, unsi
 {	
 	FILE *file = fopen(filename, "w");
 	if(!file){
-		fann_error(NULL, FANN_E_CANT_OPEN_TD_W, filename);
+		fann_error((struct fann_error*)data, FANN_E_CANT_OPEN_TD_W, filename);
 		return;
 	}
 	fann_save_train_internal_fd(data, file, filename, save_as_fixed, decimal_point);

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



More information about the debian-science-commits mailing list