devilhorns pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=382e1a89574cbc9a944257762121925ea644cd1a
commit 382e1a89574cbc9a944257762121925ea644cd1a Author: Chris Michael <[email protected]> Date: Tue Jan 23 07:00:19 2018 -0500 elput: Fix null pointer dereference Coverity reports this as a null pointer dereference, so check for 'seat' existence before comparing with strcmp Fixes CID1385369 Signed-off-by: Chris Michael <[email protected]> --- src/lib/elput/elput_logind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/elput/elput_logind.c b/src/lib/elput/elput_logind.c index ba7be0a763..82ce11ff16 100644 --- a/src/lib/elput/elput_logind.c +++ b/src/lib/elput/elput_logind.c @@ -523,7 +523,7 @@ _logind_connect(Elput_Manager **manager, const char *seat, unsigned int tty) goto seat_err; } - if (!strcmp(seat, "seat0")) + if ((seat) && (!strcmp(seat, "seat0"))) { if (!_logind_session_vt_get(em->sid, &em->vt_num)) { --
