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
* SUCH DAMAGE.
*
*
- * $Id: xutil.c,v 1.29 2002/12/28 22:28:57 ib42 Exp $
+ * $Id: xutil.c,v 1.30 2003/04/04 15:51:56 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;
}