smp: Remove unreachable initializer
authorTobias Brunner <tobias@strongswan.org>
Fri, 7 Sep 2018 08:56:07 +0000 (10:56 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 11 Sep 2018 16:18:49 +0000 (18:18 +0200)
Execution in this block will start with any of the case statements,
never with the initialization.

src/libcharon/plugins/smp/smp.c

index e7f6185..29d3d2d 100644 (file)
@@ -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: