i3-input: Bugfix: Don’t try to convert the prompt if there is no prompt

This commit is contained in:
Michael Stapelberg 2009-10-07 21:28:15 +02:00
parent ad84c07c8a
commit acb07b95c0
1 changed files with 2 additions and 1 deletions

View File

@ -274,7 +274,8 @@ int main(int argc, char *argv[]) {
sockfd = connect_ipc(socket_path); 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; int screens;
xcb_connection_t *conn = xcb_connect(NULL, &screens); xcb_connection_t *conn = xcb_connect(NULL, &screens);