Home GnuPG
Diffusion GnuPG 05fdaa173752

sm: Fix use of value NONE in gnupg_isotime_t type.

Description

sm: Fix use of value NONE in gnupg_isotime_t type.

* common/gettime.h (GNUPG_ISOTIME_NONE): New.
* sm/call-dirmngr.c (gpgsm_dirmngr_isvalid): Use it.
* sm/certlist.c (gpgsm_add_to_certlist): Likewise.
* sm/import.c (check_and_store): Likewise.
* sm/keylist.c (list_cert_colon, list_cert_raw): Likewise.
(list_cert_std): Likewise.
* sm/sign.c (gpgsm_sign): Likewise.
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Feb 18 2022, 3:11 AM
Parents
rGda04811fe708: po: Fix gender of pronoun in German translation
Branches
Unknown
Tags
Unknown

Event Timeline

What is the problem here? Some compiler warning about fully legal code?

My direct problem is to silence warnings for newer GCC.

Yes, it is actually not the problem in the particular implementation. But it requires me to examine the code in question to see it won't access memory place when the first byte is zero.

With the change, it can be judged externally, not examining the internal.