=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/mandoc.c,v retrieving revision 1.56 retrieving revision 1.57 diff -c -r1.56 -r1.57 *** src/usr.bin/mandoc/mandoc.c 2014/11/28 19:25:03 1.56 --- src/usr.bin/mandoc/mandoc.c 2014/12/15 17:29:58 1.57 *************** *** 1,4 **** ! /* $OpenBSD: mandoc.c,v 1.56 2014/11/28 19:25:03 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2011, 2012, 2013, 2014 Ingo Schwarze --- 1,4 ---- ! /* $OpenBSD: mandoc.c,v 1.57 2014/12/15 17:29:58 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2011, 2012, 2013, 2014 Ingo Schwarze *************** *** 475,480 **** --- 475,482 ---- int isz; tm = localtime(&t); + if (tm == NULL) + return(NULL); /* * Reserve space: