From 648709b392e33120f8e9ef4f84447f3c1238ca7c Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Fri, 7 Sep 2018 10:56:07 +0200 Subject: [PATCH] smp: Remove unreachable initializer Execution in this block will start with any of the case statements, never with the initialization. --- src/libcharon/plugins/smp/smp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libcharon/plugins/smp/smp.c b/src/libcharon/plugins/smp/smp.c index e7f6185847..29d3d2dada 100644 --- a/src/libcharon/plugins/smp/smp.c +++ b/src/libcharon/plugins/smp/smp.c @@ -76,7 +76,8 @@ static void write_id(xmlTextWriterPtr writer, char *element, identification_t *i switch (id->get_type(id)) { { - char *type = ""; + char *type; + while (TRUE) { case ID_ANY: -- 2.47.2