Christoph Mallon: Replace strlen(x) == 0 (O(n)) by x[0] == '\0' (O(1)).
This commit is contained in:
parent
62d7359fd5
commit
c6b7c0f507
12 changed files with 43 additions and 43 deletions
|
@ -118,7 +118,7 @@ clipboard_testClipboardTextFunctions(void *arg)
|
|||
charResult != NULL,
|
||||
"Verify SDL_GetClipboardText did not return NULL");
|
||||
SDLTest_AssertCheck(
|
||||
SDL_strlen(charResult) == 0,
|
||||
charResult[0] == '\0',
|
||||
"Verify SDL_GetClipboardText returned string with length 0, got length %i",
|
||||
SDL_strlen(charResult));
|
||||
intResult = SDL_SetClipboardText((const char *)text);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue