From 824440e52ce8ddf1c45487d20d8996d08d0f96b5 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Wed, 12 Jan 2011 20:41:19 +0000 Subject: fix uninitialized pointer in discovery it's not the most brilliant idea to pass the uninitialized structure and dereference the pointer member later on. Signed-off-by: Michael Krelin --- diff --git a/lib/discovery.cc b/lib/discovery.cc index b4ed3b6..5585e12 100644 --- a/lib/discovery.cc +++ b/lib/discovery.cc @@ -120,7 +120,7 @@ namespace opkele { discover_at(idis,xrds_location,xmode_xrd); } idis.normalized_id = idis.canonicalized_id = yurl; - service_type_t st; + service_type_t st = { 0, 0 }; for(st.uri=*types;*types;st.uri=*(++types)) queue_endpoints(oi,idis,&st); } -- cgit v0.9.0.2