diff options
Diffstat (limited to 'common/compat.c')
-rw-r--r-- | common/compat.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/common/compat.c b/common/compat.c index 8f89000..16fc14f 100644 --- a/common/compat.c +++ b/common/compat.c @@ -29,11 +29,6 @@ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH * DAMAGE. - * - * - * CONTRIBUTORS - * Nate Nielsen <nielsen@memberwebs.com> - * */ #include "compat.h" @@ -43,12 +38,10 @@ void* reallocf(void* ptr, size_t size) { - void* ret = realloc(ptr, size); - - if(!ret && size) - free(ptr); - - return ret; + void* ret = realloc(ptr, size); + if(!ret && size) + free(ptr); + return ret; } #endif |