Don't dump core if localtime returns NULL (possible on
authorJim Meyering <jim@meyering.net>
Thu, 5 Feb 2004 09:50:18 +0000 (09:50 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 5 Feb 2004 09:50:18 +0000 (09:50 +0000)
commitc904b0cae656e1850ce5ce33e92e82ff76211df4
tree2263cbe2b52688f0c188302f352f735d6402f7e1
parentadc816c05ac409c4a0e9cff03114cb7af2c5516d
Don't dump core if localtime returns NULL (possible on
hosts with 64-bit time_t and 32-bit int).

Include "inttostr.h".
(batch_convert, main):
If time conversion fails, exit with nonzero status.
(show_date): Return int to report conversion failure.
Print the time as an int if localtime fails.
src/date.c