… | |
… | |
572 | { |
572 | { |
573 | /* some systems, notably openbsd and darwin, fail to properly |
573 | /* some systems, notably openbsd and darwin, fail to properly |
574 | * implement realloc (x, 0) (as required by both ansi c-98 and |
574 | * implement realloc (x, 0) (as required by both ansi c-98 and |
575 | * the single unix specification, so work around them here. |
575 | * the single unix specification, so work around them here. |
576 | */ |
576 | */ |
|
|
577 | |
577 | if (size) |
578 | if (size) |
578 | return realloc (ptr, size); |
579 | return realloc (ptr, size); |
579 | |
580 | |
580 | free (ptr); |
581 | free (ptr); |
581 | return 0; |
582 | return 0; |