summaryrefslogtreecommitdiffstats
path: root/pam-ck-connector
diff options
context:
space:
mode:
authorWilliam Jon McCann <mccann@jhu.edu>2007-04-03 14:48:36 -0400
committerWilliam Jon McCann <mccann@jhu.edu>2007-04-03 14:48:36 -0400
commit42f6afb560859bf0dab898ae4c8f6d23070ef268 (patch)
treea430c6ead0f3c516e15a1cc633b2fac9e21e8f0d /pam-ck-connector
parentbf9a5070a715f129e1182af149a46e55529edb61 (diff)
make sure no values are NULL
Diffstat (limited to 'pam-ck-connector')
-rw-r--r--pam-ck-connector/pam-ck-connector.c8
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,