IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 2, 2016, 2:28:54 PM (10 years ago)
Author:
eugene
Message:

do not check the value of errno if new is not NULL; mkdirhier succeeds, errno must be 0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ohana.20160226/src/libohana/src/ohana_allocate.c

    r39415 r39430  
    6060  new = (OhanaMemblock *) malloc (sizeof(OhanaMemblock) + size + 2*sizeof(void *));
    6161  if (new == NULL) ohana_memabort ("failed to allocate memory (%s, %d, %s)\n", file, line, func);
    62   if (errno == ENOMEM) abort();
     62  // if (errno == ENOMEM) abort(); I should not check the value of errno if new is not NULL
    6363
    6464  // pointer to the start of the user memory
Note: See TracChangeset for help on using the changeset viewer.