diff options
Diffstat (limited to 'intern/guardedalloc/intern/mallocn_guarded_impl.c')
-rw-r--r-- | intern/guardedalloc/intern/mallocn_guarded_impl.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/intern/guardedalloc/intern/mallocn_guarded_impl.c b/intern/guardedalloc/intern/mallocn_guarded_impl.c index b24e1c8c984..384cba113ff 100644 --- a/intern/guardedalloc/intern/mallocn_guarded_impl.c +++ b/intern/guardedalloc/intern/mallocn_guarded_impl.c @@ -907,7 +907,8 @@ short MEM_guarded_testN(void *vmemh) mem_lock_thread(); membl = membase->first; - if (membl) membl = MEMNEXT(membl); + if (membl) + membl = MEMNEXT(membl); while (membl) { if (vmemh == membl + 1) { @@ -917,7 +918,8 @@ short MEM_guarded_testN(void *vmemh) if (membl->next) membl = MEMNEXT(membl->next); - else break; + else + break; } mem_unlock_thread(); @@ -1013,8 +1015,10 @@ static void addtail(volatile localListBase *listbase, void *vlink) /* for a generic API error checks here is fine but * the limited use here they will never be NULL */ #if 0 - if (link == NULL) return; - if (listbase == NULL) return; + if (link == NULL) + return; + if (listbase == NULL) + return; #endif link->next = NULL; @@ -1034,8 +1038,10 @@ static void remlink(volatile localListBase *listbase, void *vlink) /* for a generic API error checks here is fine but * the limited use here they will never be NULL */ #if 0 - if (link == NULL) return; - if (listbase == NULL) return; + if (link == NULL) + return; + if (listbase == NULL) + return; #endif if (link->next) |