commit 4ff0c7df
Update SDL_FontCache again to be in line witt upstream.
Changed files
| M | source/code/Libs/SDL_FontCache.c before |
diff --git a/source/code/Libs/SDL_FontCache.c b/source/code/Libs/SDL_FontCache.c
index d0a5132..281b375 100644
--- a/source/code/Libs/SDL_FontCache.c
+++ b/source/code/Libs/SDL_FontCache.c
@@ -1639,16 +1639,16 @@ void FC_StringListFree(FC_StringList* node)
FC_StringList** FC_StringListPushBack(FC_StringList** node, char* value, Uint8 copy)
{
- // Get to the last node
- while(node != NULL && *node != NULL)
- {
- node = &(*node)->next;
- }
-
if(node == NULL)
{
return node;
}
+
+ // Get to the last node
+ while(*node != NULL)
+ {
+ node = &(*node)->next;
+ }
*node = (FC_StringList*)malloc(sizeof(FC_StringList));