From acb07b95c00d090042eba6888b6f062261d15234 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 7 Oct 2009 21:28:15 +0200 Subject: [PATCH] =?utf8?q?i3-input:=20Bugfix:=20Don=E2=80=99t=20try=20to?= =?utf8?q?=20convert=20the=20prompt=20if=20there=20is=20no=20prompt?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- i3-input/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/i3-input/main.c b/i3-input/main.c index 9b856d8a..a3bc9de3 100644 --- a/i3-input/main.c +++ b/i3-input/main.c @@ -274,7 +274,8 @@ int main(int argc, char *argv[]) { sockfd = connect_ipc(socket_path); - prompt = convert_utf8_to_ucs2(prompt, &prompt_len); + if (prompt != NULL) + prompt = convert_utf8_to_ucs2(prompt, &prompt_len); int screens; xcb_connection_t *conn = xcb_connect(NULL, &screens); -- 2.39.5