From: leepei Date: Wed, 25 Jul 2012 06:25:21 +0000 (+0000) Subject: Fixed a bug of -q option of predict in matlab interface X-Git-Tag: v192~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=05d45b1307e1085ce2be1be4db6cbb68a6ec09ca;p=liblinear Fixed a bug of -q option of predict in matlab interface --- 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;