summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-10-24 21:02:53 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-10-24 21:02:53 +0200
commit5f6177e00fe4c56ece2cabdd61b772ed040c6e19 (patch)
treed1a63cf6617ba3e91673b498c86120cda827ad53 /src
parent004ae15c55b58996d3f4baf0ca14a1c41ab6ce57 (diff)
downloadfastd-5f6177e00fe4c56ece2cabdd61b772ed040c6e19.tar
fastd-5f6177e00fe4c56ece2cabdd61b772ed040c6e19.zip
Fix maybe-uninitialized warning
Diffstat (limited to 'src')
-rw-r--r--src/handshake.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/handshake.c b/src/handshake.c
index 28abfc2..070c959 100644
--- a/src/handshake.c
+++ b/src/handshake.c
@@ -310,7 +310,7 @@ static inline const fastd_method_t* get_method(fastd_context_t *ctx, const fastd
if (handshake->records[RECORD_METHOD_LIST].data && handshake->records[RECORD_METHOD_LIST].length) {
fastd_string_stack_t *method_list = parse_string_list(handshake->records[RECORD_METHOD_LIST].data, handshake->records[RECORD_METHOD_LIST].length);
- const fastd_method_t *method;
+ const fastd_method_t *method = NULL;
fastd_string_stack_t *method_name = method_list;
while (method_name) {