Bug 26005 - Don't fail when reading and invalid seats file
Summary: Don't fail when reading and invalid seats file
Status: RESOLVED FIXED
Alias: None
Product: ConsoleKit
Classification: Unclassified
Component: Daemon (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: william.jon.mccann
QA Contact:
URL: http://bugs.debian.org/cgi-bin/bugrep...
Whiteboard:
Keywords:
: 25097 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-01-12 04:55 UTC by Michael Biebl
Modified: 2010-01-28 15:14 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Don't fail when reading an invalid seats file (648 bytes, patch)
2010-01-12 04:55 UTC, Michael Biebl
Details | Splinter Review

Description Michael Biebl 2010-01-12 04:55:41 UTC
Created attachment 32586 [details] [review]
Don't fail when reading an invalid seats file

When reading an invalid seats file, ck_seat_new_from_file() will return NULL.
In that case, check for NULL before using the seat variable in add_seat_for_file()
Comment 1 william.jon.mccann 2010-01-28 15:12:33 UTC
Great!  Applied.  Thanks.
Comment 2 william.jon.mccann 2010-01-28 15:14:04 UTC
*** Bug 25097 has been marked as a duplicate of this bug. ***


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.