From 17dd1771421d1098a2ba8dc16ae381912cae64ef Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Sat, 22 Sep 2007 21:02:48 +0000 Subject: save a couple of ticks Signed-off-by: Michael Krelin --- (limited to 'lib/consumer.cc') diff --git a/lib/consumer.cc b/lib/consumer.cc index df95b64..7f31d52 100644 --- a/lib/consumer.cc +++ b/lib/consumer.cc @@ -342,12 +342,11 @@ namespace opkele { if(!( rre.exec(attrs,m1)>=2 && hre.exec(attrs,m2)>=2 )) continue; string rel(attrs,m1.begin(1),m1.length(1)); - string href(attrs,m2.begin(1),m2.length(1)); if(rel=="openid.server") { - server = href; + server.assign(attrs,m2.begin(1),m2.length(1)); if(!delegate.empty()) break; }else if(rel=="openid.delegate") { - delegate = href; + delegate.assign(attrs,m2.begin(1),m2.length(1)); if(!server.empty()) break; } } -- cgit v0.9.0.2