From 77c8989f12beb48f5149efbb8ea198f88f9eda87 Mon Sep 17 00:00:00 2001 From: Tait Hoyem <44244401+TTWNO@users.noreply.github.com> Date: Sun, 16 Jun 2019 18:43:07 +0000 Subject: [PATCH] Remove malloc for tests as it is uneccessary --- test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test.c b/test.c index 80e549c..d697227 100644 --- a/test.c +++ b/test.c @@ -65,7 +65,8 @@ void assert_ctm(char input, char* output){ } void assert_stm(char* input, char* output){ - char* result = malloc(sizeof(char)*strlen(input)*8); + char* result; + //char* result = malloc(sizeof(char)*strlen(input)*8); // fill with blanks in case of previous data // strcpy(result, ""); result = string_to_morse(input);