-/* $OpenBSD: malloc-wrapper.c,v 1.1 2014/04/16 03:24:53 beck Exp $ */
+/* $OpenBSD: malloc-wrapper.c,v 1.2 2014/04/17 20:44:45 tedu Exp $ */
/*
* Copyright (c) 2014 Bob Beck
*
void *
CRYPTO_malloc_locked(int num, const char *file, int line)
{
- void *ret = NULL;
-
if (num <= 0)
return NULL;
return malloc(num);
-/* $OpenBSD: malloc-wrapper.c,v 1.1 2014/04/16 03:24:53 beck Exp $ */
+/* $OpenBSD: malloc-wrapper.c,v 1.2 2014/04/17 20:44:45 tedu Exp $ */
/*
* Copyright (c) 2014 Bob Beck
*
void *
CRYPTO_malloc_locked(int num, const char *file, int line)
{
- void *ret = NULL;
-
if (num <= 0)
return NULL;
return malloc(num);