login: fix potential null pointer dereference
authorRonny Chevalier <chevalier.ronny@gmail.com>
Fri, 12 Jun 2015 09:37:11 +0000 (11:37 +0200)
committerRonny Chevalier <chevalier.ronny@gmail.com>
Mon, 15 Jun 2015 08:22:32 +0000 (10:22 +0200)
commitb9460fdc8b57102b665a662b82efcced4b1af72b
treefea61270f6c232f60e7a5f5fd2c9dc56eae8d628
parenteb59b6094197a7dcef89639ec3e91eef61b639bb
login: fix potential null pointer dereference

Fix CID 1304686: Dereference after null check (FORWARD_NULL)

However, this commit does not fix any bug in logind. It helps to keep
the elect_display_compare() function generic.
src/login/logind-user.c