ui: fix dcl unregister
commit777c5f1e436d334a57b650b6951c13d8d2799df0
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 9 Nov 2017 10:51:54 +0000 (9 11:51 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 10 Nov 2017 10:06:43 +0000 (10 11:06 +0100)
tree6dd206fdfb4b92da05de44dd59fe3704c5747872
parentb0fbe46ad82982b289a44ee2495b59b0bad8a842
ui: fix dcl unregister

register checks for dcl->ds being NULL, to avoid registering
the same dcl twice.

Therefore dcl->ds must be cleared on unregister, otherwise
un-registering and re-registering doesn't work.

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1510809
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 20171109105154.29414-1-kraxel@redhat.com
ui/console.c