From 16952f4d309aa3d64b6a7a1eba5593eca153654e Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 3 Dec 2022 08:25:20 +0200 Subject: [PATCH 18/18] Fix conn_pattern_from_string() dead initialization of 'type' See osdn #46162 Signed-off-by: Marko Lindqvist --- common/networking/connection.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/networking/connection.c b/common/networking/connection.c index cc580d4c21..501935d679 100644 --- a/common/networking/connection.c +++ b/common/networking/connection.c @@ -861,7 +861,7 @@ struct conn_pattern *conn_pattern_from_string(const char *pattern, char *error_buf, size_t error_buf_len) { - enum conn_pattern_type type = conn_pattern_type_invalid(); + enum conn_pattern_type type; const char *p; /* Determine pattern type. */ @@ -905,7 +905,7 @@ struct conn_pattern *conn_pattern_from_string(const char *pattern, return NULL; } - return conn_pattern_new(type, p); + return conn_pattern_new(type, p); } /************************************************************************** -- 2.35.1