From e63de16a9885641b5070ec834225cb562bc2042f Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Wed, 26 Dec 2007 21:55:00 +0000 Subject: fix the xrds_location being cleared before it gets used. The xrds_location should not be cleared when doing pure xrd discovery. Otherwise it may get overwritten before curl actually uses it. Previously it was cleared twice, which is a waste of cpu cycles, anyway. Signed-off-by: Michael Krelin --- (limited to 'lib') diff --git a/lib/discovery.cc b/lib/discovery.cc index 9503b5d..ea53786 100644 --- a/lib/discovery.cc +++ b/lib/discovery.cc @@ -144,7 +144,7 @@ namespace opkele { set_user_data(); set_element_handler(); set_character_data_handler(); - xrds_location.clear(); http_content_type.clear(); + http_content_type.clear(); xmode = xm; if(xmode&xmode_html) { xrds_location.clear(); -- cgit v0.9.0.2