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

Print "??" if the current clock can't
be converted by localtime.  This won't happen until the year
2*31 + 1900, but we don't want to dump core even if the current
clock has the wrong value.
src/uptime.c