aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/cerberus.c2
-rw-r--r--src/passphrase.c2
2 files changed, 3 insertions, 1 deletions
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;