X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/a285f830b66416a81f4c612345db46663509e7e8..4c26bb506b3c12443171551b103a81b038d25334:/config.c diff --git a/config.c b/config.c index f44b7603..464a2415 100644 --- a/config.c +++ b/config.c @@ -1765,7 +1765,8 @@ void setup_config_box(struct controlbox *b, int midsession, /* We assume the local username is sufficiently stable * to include on the dialog box. */ char *user = get_username(); - char *userlabel = dupprintf("Use system username (%s)", user); + char *userlabel = dupprintf("Use system username (%s)", + user ? user : ""); sfree(user); ctrl_radiobuttons(s, "When username is not specified:", 'n', 4, HELPCTX(connection_username_from_env),