diff options
author | William Jon McCann <mccann@jhu.edu> | 2008-02-01 14:20:00 -0500 |
---|---|---|
committer | William Jon McCann <mccann@jhu.edu> | 2008-02-01 14:20:00 -0500 |
commit | 076d63698c204427b210a2da76dc1b7e6640bbb9 (patch) | |
tree | 4d7f586953e349c6a578272dc68b6f2de9c13e74 /tools | |
parent | 185c0f5169dbcb55854491d9ab642c7b5c6418ca (diff) | |
download | ConsoleKit2-076d63698c204427b210a2da76dc1b7e6640bbb9.tar.gz |
when a parsing error occurs don't return an empty event
Diffstat (limited to 'tools')
-rw-r--r-- | tools/ck-history.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/ck-history.c b/tools/ck-history.c index 8f96a9b..716c3ef 100644 --- a/tools/ck-history.c +++ b/tools/ck-history.c @@ -566,11 +566,11 @@ generate_report_last (int uid, continue; } - if (seat != NULL && strcmp (e->seat_id, seat) != 0) { + if (seat != NULL && e->seat_id != NULL && strcmp (e->seat_id, seat) != 0) { continue; } - if (session_type != NULL && strcmp (e->session_type, session_type) != 0) { + if (session_type != NULL && e->session_type != NULL && strcmp (e->session_type, session_type) != 0) { continue; } } @@ -609,11 +609,11 @@ generate_report_last_compat (int uid, continue; } - if (seat != NULL && strcmp (e->seat_id, seat) != 0) { + if (seat != NULL && e->seat_id != NULL && strcmp (e->seat_id, seat) != 0) { continue; } - if (session_type != NULL && strcmp (e->session_type, session_type) != 0) { + if (session_type != NULL && e->session_type != NULL && strcmp (e->session_type, session_type) != 0) { continue; } } @@ -689,11 +689,11 @@ generate_report_frequent (int uid, continue; } - if (seat != NULL && strcmp (e->seat_id, seat) != 0) { + if (seat != NULL && e->seat_id != NULL && strcmp (e->seat_id, seat) != 0) { continue; } - if (session_type != NULL && strcmp (e->session_type, session_type) != 0) { + if (session_type != NULL && e->session_type != NULL && strcmp (e->session_type, session_type) != 0) { continue; } |