From af1067688e06aed6a58c30f327c25980c06dbc85 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Wed, 11 May 2011 09:27:49 +0900 Subject: [PATCH] save memory (1) --- ChangeLog | 5 +++++ src/ac.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f9544b2..01b1228 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-05-11 NIIBE Yutaka + + * src/ac.c (auth_status): Don't assign 0 as it's automatically + cleared. + 2011-05-10 NIIBE Yutaka * src/openpgp-do.c (gpg_pw_locked): Rename from gpg_passwd_locked. diff --git a/src/ac.c b/src/ac.c index 0011351..e13ec96 100644 --- a/src/ac.c +++ b/src/ac.c @@ -28,7 +28,7 @@ #include "polarssl/config.h" #include "polarssl/sha1.h" -uint8_t volatile auth_status = AC_NONE_AUTHORIZED; +uint8_t volatile auth_status; /* Initialized to AC_NONE_AUTHORIZED */ int ac_check_status (uint8_t ac_flag)