git repos / blockattack-game

commit 4ff0c7df

sago007 · 2018-03-24 13:06
4ff0c7dff6bca92e9e1b92d66114d03ca4716bb8 patch · browse files
parent c91e8f6d20956b9456a46b55f1fbbdef51980c00

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));