save memory (1)
authorNIIBE Yutaka <gniibe@fsij.org>
Wed, 11 May 2011 00:27:49 +0000 (09:27 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Wed, 11 May 2011 00:27:49 +0000 (09:27 +0900)
ChangeLog
src/ac.c

index f9544b2..01b1228 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-05-11  NIIBE Yutaka  <gniibe@fsij.org>
+
+       * src/ac.c (auth_status): Don't assign 0 as it's automatically
+       cleared.
+
 2011-05-10  NIIBE Yutaka  <gniibe@fsij.org>
 
        * src/openpgp-do.c (gpg_pw_locked): Rename from gpg_passwd_locked.
index 0011351..e13ec96 100644 (file)
--- 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)