From fde0dbe6605188b040256c774e3fa79f7e98f432 Mon Sep 17 00:00:00 2001 From: Evan Huus Date: Sat, 2 Aug 2014 10:45:28 -0400 Subject: [PATCH] fix warning: 'cipher_hd' may be used uninitialized in this function I don't think it's an actual issue, but the new compiler on the mac buildbots isn't smart enough to tell that. Change-Id: I759e1afe9c4011d5612be0d15282076be6f5a331 Reviewed-on: https://code.wireshark.org/review/3355 Reviewed-by: Evan Huus --- epan/dissectors/packet-ipsec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/epan/dissectors/packet-ipsec.c b/epan/dissectors/packet-ipsec.c index 60a5a31916..add20896c2 100644 --- a/epan/dissectors/packet-ipsec.c +++ b/epan/dissectors/packet-ipsec.c @@ -914,6 +914,9 @@ get_esp_sa(gint protocol_typ, gchar *src, gchar *dst, gint spi, g_snprintf(spi_string, IPSEC_SPI_LEN_MAX,"0x%08x", spi); + *cipher_hd = NULL; + *cipher_hd_created = NULL; + /* Check each known SA in turn */ for (i = 0, j=0; (found == FALSE) && ((i < num_sa_uat) || (j < extra_esp_sa_records.num_records)); ) {