]> pd.if.org Git - pdclib/blobdiff - functions/stdlib/malloc.c
Yet closer to functional output.
[pdclib] / functions / stdlib / malloc.c
index 22718ee67e778439d964d99d834201e878525f1e..ab0920b8bb7f959336f8f63aa6eb56ec3806d554 100644 (file)
@@ -121,12 +121,12 @@ void * malloc( size_t size )
             if ( _PDCLIB_memlist.last == NULL )
             {
                 _PDCLIB_memlist.first = splitnode;
-                splitnode->next = NULL;
             }
             else
             {
                 _PDCLIB_memlist.last->next = splitnode;
             }
+            splitnode->next = NULL; /* TODO: This is bug #7, uncovered by testdriver yet. */
             _PDCLIB_memlist.last = splitnode;
         }
         return (char *)newnode + sizeof( struct _PDCLIB_memnode_t );
@@ -238,7 +238,7 @@ int main( void )
     TESTCASE( PAGETEST( 9 ) );
     NODETRACE( 17 );
 #else
-    puts( "No testing of malloc() - test driver does not know internals of system function." );
+    puts( " NOTEST malloc() test driver is PDCLib-specific." );
 #endif
     return TEST_RESULTS;
 }