mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
examples: remove duplicated condition
This commit is contained in:
parent
8d5f27ef25
commit
82f48b8912
1 changed files with 1 additions and 2 deletions
|
|
@ -137,8 +137,7 @@ static void show_status(void) {
|
|||
goto end;
|
||||
}
|
||||
|
||||
if ((unsigned)current.preedit.cursor_begin > strlen(preedit_text)
|
||||
|| (unsigned)current.preedit.cursor_begin > strlen(preedit_text)) {
|
||||
if ((unsigned)current.preedit.cursor_begin > strlen(preedit_text)) {
|
||||
printf("Cursor out of bounds\n");
|
||||
goto end;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue