projects
/
shibboleth
/
cpp-xmltooling.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8954c4
)
Defend against empty location.
author
Scott Cantor
<cantor.2@osu.edu>
Thu, 26 Feb 2009 18:17:49 +0000
(18:17 +0000)
committer
Scott Cantor
<cantor.2@osu.edu>
Thu, 26 Feb 2009 18:17:49 +0000
(18:17 +0000)
xmltooling/soap/impl/SOAPClient.cpp
patch
|
blob
|
history
diff --git
a/xmltooling/soap/impl/SOAPClient.cpp
b/xmltooling/soap/impl/SOAPClient.cpp
index
fb0ff52
..
9082d41
100644
(file)
--- a/
xmltooling/soap/impl/SOAPClient.cpp
+++ b/
xmltooling/soap/impl/SOAPClient.cpp
@@
-57,7
+57,7
@@
void SOAPClient::reset()
void SOAPClient::send(const Envelope& env, const SOAPTransport::Address& addr)
{
// Prepare a transport object.
- const char* pch =
strchr(addr.m_endpoint,':')
;
+ const char* pch =
addr.m_endpoint ? strchr(addr.m_endpoint,':') : NULL
;
if (!pch)
throw IOException("SOAP endpoint was not a URL.");
string scheme(addr.m_endpoint, pch-addr.m_endpoint);