From 9b7fb6f68ef3a05e00abc671ff1937194aa4c4d1 Mon Sep 17 00:00:00 2001
From: Paul Bakker
Date: Thu, 12 Jun 2014 23:01:43 +0200
Subject: [PATCH] Prevent warning for possibly uninitialized variable in
ssl_server2
---
programs/ssl/ssl_server2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/programs/ssl/ssl_server2.c b/programs/ssl/ssl_server2.c
index 9f53ad287..0a1e3eab9 100644
--- a/programs/ssl/ssl_server2.c
+++ b/programs/ssl/ssl_server2.c
@@ -574,7 +574,7 @@ int main( int argc, char *argv[] )
#if defined(POLARSSL_KEY_EXCHANGE__SOME__PSK_ENABLED)
unsigned char psk[MAX_PSK_LEN];
size_t psk_len = 0;
- psk_entry *psk_info;
+ psk_entry *psk_info = NULL;
#endif
const char *pers = "ssl_server2";