From 422b07621e8199dc0644fee37b6c6c7d1b1d81ea Mon Sep 17 00:00:00 2001 From: "N.N." Date: Mon, 27 Apr 2009 21:16:25 +0000 Subject: duh (fix previous commit about -stdout) svn path=/trunk/; revision=11181 --- desiredata/src/desire.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'desiredata/src/desire.c') diff --git a/desiredata/src/desire.c b/desiredata/src/desire.c index f03b3775..bdbc60c5 100644 --- a/desiredata/src/desire.c +++ b/desiredata/src/desire.c @@ -7184,11 +7184,11 @@ extern "C" void glob_init () { /* formerly s_print.c */ t_printhook sys_printhook; -int sys_printtofh = -1; /* send to console by default */ +FILE *sys_printtofh = 0; /* send to console by default */ static void dopost(const char *s) { if (sys_printhook) sys_printhook(s); - else if (sys_printtofh<0) fprintf(stderr, "%s", s); + else if (sys_printtofh) fprintf(sys_printtofh, "%s", s); else { std::ostringstream t; for(int i=0; s[i]; i++) { -- cgit v1.2.1