diff options
author | William Jon McCann <mccann@jhu.edu> | 2007-10-19 16:46:43 -0400 |
---|---|---|
committer | William Jon McCann <mccann@jhu.edu> | 2007-10-19 16:46:43 -0400 |
commit | 7880c2eacaa45196b83a9032371f487f6fe312e4 (patch) | |
tree | ee19bf5f9cd2f7841c2d9a3621c5fca78f670f19 /tools | |
parent | 2ef61beadf1b4c938bb13bb3b460f69bcc720193 (diff) |
check for oldest being null
Diffstat (limited to 'tools')
-rw-r--r-- | tools/ck-history.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/ck-history.c b/tools/ck-history.c index 23a87af..b6ee5d2 100644 --- a/tools/ck-history.c +++ b/tools/ck-history.c @@ -241,8 +241,10 @@ generate_report_last_compat (void) } oldest = g_list_first (all_events); - oldest_event = oldest->data; - g_print ("\nLog begins %s", ctime (&oldest_event->timestamp.tv_sec)); + if (oldest != NULL) { + oldest_event = oldest->data; + g_print ("\nLog begins %s", ctime (&oldest_event->timestamp.tv_sec)); + } } static void |