From 2bfc8d23c897591e45ce82753772e8f0a258e798 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 3 Nov 2013 04:38:11 +0100 Subject: derp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/cerberus.c | 2 +- src/passphrase.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/cerberus.c b/src/cerberus.c index a9772c9..b27b3da 100644 --- a/src/cerberus.c +++ b/src/cerberus.c @@ -22,7 +22,7 @@ #include "passphrase.h" -#define xfree(VAR) ({ if (var) free(var); }) +#define xfree(VAR) ({ if (VAR) free(VAR); }) /** diff --git a/src/passphrase.c b/src/passphrase.c index cd88c7f..4b6af86 100644 --- a/src/passphrase.c +++ b/src/passphrase.c @@ -72,6 +72,8 @@ char* get_passphrase(void) */ void disable_echo() { + struct termios stty; + tcgetattr(STDIN_FILENO, &saved_stty); stty = saved_stty; stty.c_lflag &= ~ECHO; -- cgit v1.2.3-70-g09d2