Changeset 826 for trunk/src


Ignore:
Timestamp:
Oct 11, 2003, 1:25:48 AM (22 years ago)
Author:
bird
Message:

warnings + small bugfix (pPrevChunk uninitialized!)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/src/lib/sys/heaphigh.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r825 r826  
    2828*   Header Files                                                               *
    2929*******************************************************************************/
     30#include "libc-alias.h"
    3031#define INCL_DOSMEMMGR
    3132#define INCL_ERRORS
    3233#include <os2emx.h>
     34#include <string.h>
    3335#include <emx/umalloc.h>
    3436#include "syscalls.h"
     
    142144    if (_fmutex_request(&_sys_gmtxHimem, _FMR_IGNINT) != 0)
    143145        return;
    144     for (pChunk = pHimemHead, pPrevChunk; pChunk; pPrevChunk = pChunk, pChunk = pChunk->pNext)
     146    for (pChunk = pHimemHead, pPrevChunk = NULL; pChunk; pPrevChunk = pChunk, pChunk = pChunk->pNext)
    145147        if (&pChunk[1] == pv)
    146148        {
Note: See TracChangeset for help on using the changeset viewer.