From 5ccf64e7fd744dad2ec4ce111e1529a0f9e30c7d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 22 Nov 2013 22:06:28 +0100 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/passphrase.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/passphrase.c b/src/passphrase.c index ae7ad36..ad9062d 100644 --- a/src/passphrase.c +++ b/src/passphrase.c @@ -42,10 +42,6 @@ static struct termios saved_stty; */ char* passphrase_read(void) { - /* malloc and realloc returns NULL if we run out of memory, - we will not do that under normal usecases, if we do, it - okay to segfault on null derefencing and quit on that. */ - char* rc = malloc(START_PASSPHRASE_LIMIT * sizeof(char)); long size = START_PASSPHRASE_LIMIT; long len = 0; -- cgit v1.2.3-70-g09d2