diff options
author | William Jon McCann <mccann@jhu.edu> | 2007-04-03 14:48:36 -0400 |
---|---|---|
committer | William Jon McCann <mccann@jhu.edu> | 2007-04-03 14:48:36 -0400 |
commit | 42f6afb560859bf0dab898ae4c8f6d23070ef268 (patch) | |
tree | a430c6ead0f3c516e15a1cc633b2fac9e21e8f0d | |
parent | bf9a5070a715f129e1182af149a46e55529edb61 (diff) | |
download | ConsoleKit2-42f6afb560859bf0dab898ae4c8f6d23070ef268.tar.gz |
make sure no values are NULL
-rw-r--r-- | pam-ck-connector/pam-ck-connector.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pam-ck-connector/pam-ck-connector.c b/pam-ck-connector/pam-ck-connector.c index e57e80f..22c076f 100644 --- a/pam-ck-connector/pam-ck-connector.c +++ b/pam-ck-connector/pam-ck-connector.c @@ -312,6 +312,14 @@ pam_sm_open_session (pam_handle_t *pamh, } } + /* make sure no values are NULL */ + if (x11_display == NULL) { + x11_display = ""; + } + if (remote_host_name == NULL) { + remote_host_name = ""; + } + dbus_error_init (&error); res = ck_connector_open_session_with_parameters (ckc, &error, |