mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
agent: Fix two compiler warnings.
* agent/command.c (cmd_preset_passphrase, pinentry_loopback): Use %zu in format string. * scd/ccid-driver.c (ccid_get_atr): Ditto. * agent/command-ssh.c (stream_read_string): Init arg STRING_SIZE to avoid maybe_unitialized warning. -- Actually the first one might have been a problem on big endian machines. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
b6d54f1196
commit
04e2c83f18
3 changed files with 5 additions and 3 deletions
|
@ -487,6 +487,8 @@ stream_read_string (estream_t stream, unsigned int secure,
|
|||
unsigned char *buffer = NULL;
|
||||
u32 length = 0;
|
||||
|
||||
*string_size = 0;
|
||||
|
||||
/* Read string length. */
|
||||
err = stream_read_uint32 (stream, &length);
|
||||
if (err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue