From: Michael Stapelberg Date: Wed, 7 Oct 2009 19:28:15 +0000 (+0200) Subject: i3-input: Bugfix: Don’t try to convert the prompt if there is no prompt X-Git-Tag: 3.d~50 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=acb07b95c00d090042eba6888b6f062261d15234;p=i3%2Fi3 i3-input: Bugfix: Don’t try to convert the prompt if there is no prompt --- 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);