Don't write NULL name and path over stream. Just send empty strings
authorAlexandra Ellwood <lxs@mit.edu>
Thu, 2 Oct 2008 19:13:48 +0000 (19:13 +0000)
committerAlexandra Ellwood <lxs@mit.edu>
Thu, 2 Oct 2008 19:13:48 +0000 (19:13 +0000)
ticket: 6055

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20815 dc483132-0cff-0310-8789-dd5450dbe970

src/kim/lib/mac/kim_os_ui_gui.c

index 1b309b2e772dda019cfe1652b63ef027959e9cf7..0b8096fcbb2f073b05d81ea03fbd786e5757b5f4 100644 (file)
@@ -81,11 +81,11 @@ kim_error kim_os_ui_gui_init (kim_ui_context *io_context)
     }
     
     if (!err) {
-        err = k5_ipc_stream_write_string (request, name);
+        err = k5_ipc_stream_write_string (request, name ? name : "");
     }
     
     if (!err) {
-        err = k5_ipc_stream_write_string (request, path);
+        err = k5_ipc_stream_write_string (request, path ? path : "");
     }
     
     if (!err) {