diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-02-23 06:23:42 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-02-23 06:23:42 +0400 |
commit | c8b53d2aaf7ee4d07736cf842ca385e0311f3c53 (patch) | |
tree | 2feabb1078d838a001be6a32dcf7e9f00bebf70f /source/blender/blenlib/intern/BLI_linklist.c | |
parent | 53fece44cf08e730bba8b8581f8bd02361f37930 (diff) |
code style cleanup, no functional changes.
Diffstat (limited to 'source/blender/blenlib/intern/BLI_linklist.c')
-rw-r--r-- | source/blender/blenlib/intern/BLI_linklist.c | 7 |
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; |