Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/blenlib/intern/BLI_linklist.c')
-rw-r--r--source/blender/blenlib/intern/BLI_linklist.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/blenlib/intern/BLI_linklist.c b/source/blender/blenlib/intern/BLI_linklist.c
index 6300817ec03..7529904c1ea 100644
--- a/source/blender/blenlib/intern/BLI_linklist.c
+++ b/source/blender/blenlib/intern/BLI_linklist.c
@@ -104,10 +104,11 @@ void BLI_linklist_append(LinkNode **listp, void *ptr)
nlink->link = ptr;
nlink->next = NULL;
- if(node == NULL){
+ if (node == NULL) {
*listp = nlink;
- } else {
- while(node->next != NULL){
+ }
+ else {
+ while (node->next != NULL) {
node = node->next;
}
node->next = nlink;