From e7cc358a8211efecebd368bf5a64406b83962985 Mon Sep 17 00:00:00 2001 From: Sergey Popov Date: Mon, 12 Dec 2011 13:51:22 +0400 Subject: [PATCH] add explicit return of pointer to allocated memory --- yasnd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/yasnd.c b/yasnd.c index ea07539..7de86a4 100644 --- a/yasnd.c +++ b/yasnd.c @@ -38,6 +38,7 @@ void* allocate_memory(int bytes) log_event("Error: malloc failed"); exit(EXIT_FAILURE); } + return result; } void init()