]> rtime.felk.cvut.cz Git - arc.git/blobdiff - common/newlib_port.c
Cleanup of makefiles. Cleanup of merge.
[arc.git] / common / newlib_port.c
index 3eb5198a0eb0e678137cea961d7c774a6a4c774b..913e1077046c7fa29191a9b1bd0fd2ea052fcfaf 100644 (file)
@@ -494,10 +494,10 @@ void * sbrk( ptrdiff_t incr )
     unsigned char *prev_heap_end;\r
 \r
 /* initialize */\r
-    if( heap_end == 0 )\r
+    if( heap_end == 0 ){\r
        heap_end = _heap;\r
-\r
-       prev_heap_end = heap_end;\r
+    }\r
+    prev_heap_end = heap_end;\r
 \r
        if( heap_end + incr - _heap > HEAPSIZE ) {\r
        /* heap overflow - announce on stderr */\r