From 04e2c83f189cc56342e1be784bdc63761ccdb5bb Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 22 Aug 2013 09:35:21 +0200 Subject: 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 --- agent/command-ssh.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'agent/command-ssh.c') diff --git a/agent/command-ssh.c b/agent/command-ssh.c index f378ade55..0ff70b534 100644 --- a/agent/command-ssh.c +++ b/agent/command-ssh.c @@ -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) -- cgit v1.2.3