]> granicus.if.org Git - liblinear/commitdiff
Fixed a bug of -q option of predict in matlab interface
authorleepei <leepei@16e7d947-dcc2-db11-b54a-0017319806e7>
Wed, 25 Jul 2012 06:25:21 +0000 (06:25 +0000)
committerleepei <leepei@16e7d947-dcc2-db11-b54a-0017319806e7>
Wed, 25 Jul 2012 06:25:21 +0000 (06:25 +0000)
matlab/predict.c

index f60b54d2b2dafce9c2b656d5b66bab7fb68b211a..48552684ed5986a884d2ae7a3734242643df86e8 100644 (file)
@@ -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;