From 05d45b1307e1085ce2be1be4db6cbb68a6ec09ca Mon Sep 17 00:00:00 2001 From: leepei Date: Wed, 25 Jul 2012 06:25:21 +0000 Subject: [PATCH] Fixed a bug of -q option of predict in matlab interface --- matlab/predict.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/matlab/predict.c b/matlab/predict.c index f60b54d..4855268 100644 --- a/matlab/predict.c +++ b/matlab/predict.c @@ -17,7 +17,7 @@ typedef int mwIndex; #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) int print_null(const char *s,...) {} -int (*info)(const char *fmt,...) = &mexPrintf; +int (*info)(const char *fmt,...); int col_format_flag; @@ -220,6 +220,7 @@ void mexFunction( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) { int prob_estimate_flag = 0; + info = &mexPrintf; struct model *model_; char cmd[CMD_LEN]; col_format_flag = 0; -- 2.40.0