diff options
author | Michael Biebl <mbiebl@gmail.com> | 2010-01-28 18:11:54 -0500 |
---|---|---|
committer | William Jon McCann <jmccann@redhat.com> | 2010-01-28 18:11:54 -0500 |
commit | f01e054a419d7aaf10c1da321bfbff554ffc3c54 (patch) | |
tree | cba9bf642c089689de739bb99de016742d59b6c6 | |
parent | 2418840248f07025ad0edc96ed17e03ce5e47f3e (diff) |
Don't segfault if the seats file is invalid.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=561106
-rw-r--r-- | src/ck-manager.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ck-manager.c b/src/ck-manager.c index d436a06..1dfc789 100644 --- a/src/ck-manager.c +++ b/src/ck-manager.c @@ -2447,6 +2447,10 @@ add_seat_for_file (CkManager *manager, seat = ck_seat_new_from_file (sid, filename); + if (seat == NULL) { + return; + } + connect_seat_signals (manager, seat); if (!ck_seat_register (seat)) { /* returns false if connection to bus fails */ |