gnupg: Fix uninitialized local variable

```
[...]/src/g10/keylist.c:342:43: warning: variable 'indent' is uninitialized when used here [-Wuninitialized]
              tty_fprintf (fp, "\n%*s%s", indent, "", _("card-no: "));
                                          ^~~~~~
[...]/src/g10/keylist.c:310:13: note: initialize the variable 'indent' to silence this warning
  int indent;
            ^
             = 0
```
This commit is contained in:
Tee KOBAYASHI 2023-01-21 17:00:14 +09:00 committed by xtkoba
parent 511ed1f64c
commit d46e3bc8a4
2 changed files with 10 additions and 1 deletions

View File

@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="Implementation of the OpenPGP standard for encrypting an
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=2.4.0
TERMUX_PKG_REVISION=1
TERMUX_PKG_REVISION=2
TERMUX_PKG_SRCURL=https://www.gnupg.org/ftp/gcrypt/gnupg/gnupg-${TERMUX_PKG_VERSION}.tar.bz2
TERMUX_PKG_SHA256=1d79158dd01d992431dd2e3facb89fdac97127f89784ea2cb610c600fb0c1483
TERMUX_PKG_DEPENDS="libassuan, libbz2, libgcrypt, libgnutls, libgpg-error, libksba, libnpth, libsqlite, readline, pinentry, resolv-conf, zlib"

View File

@ -1,5 +1,14 @@
--- ./g10/keylist.c~ 2022-11-25 16:05:09.000000000 +0100
+++ ./g10/keylist.c 2023-01-19 20:37:12.674592842 +0100
@@ -307,7 +307,7 @@
char *serialno;
int s2k_char;
char pkstrbuf[PUBKEY_STRING_SIZE];
- int indent;
+ const int indent = 0;
for (node = keyblock; node; node = node->next)
{
@@ -329,12 +329,11 @@
else
s2k_char = '#'; /* Key not found. */