if it is null (strlen core dump on solaris). Bug report from John
P. Rouillard <rouilj@ieee.org>.
+2003-04-04 Erez Zadok <ezk@agora.fsl.cs.sunysb.edu>
+
+ * libamu/xutil.c (switch_to_logfile): don't try to print logfile
+ if it is null (strlen core dump on solaris). Bug report from John
+ P. Rouillard <rouilj@ieee.org>.
+
2003-03-31 Erez Zadok <ezk@agora.fsl.cs.sunysb.edu>
* fsinfo/fsinfo.8: typo co-ordinate -> coordinate. Typo report
*
* %W% (Berkeley) %G%
*
- * $Id: xutil.c,v 1.11.2.11 2002/12/28 22:28:30 ib42 Exp $
+ * $Id: xutil.c,v 1.11.2.12 2003/04/04 15:53:35 ezk Exp $
*
*/
(void) fclose(logfp);
logfp = new_logfp;
- plog(XLOG_INFO, "switched to logfile \"%s\"", logfile);
+ if (logfile)
+ plog(XLOG_INFO, "switched to logfile \"%s\"", logfile);
+ else
+ plog(XLOG_INFO, "no logfile defined; using stderr");
+
return 0;
}