aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTodd Malsbary <todd.malsbary@intel.com>2017-02-10 13:53:27 -0800
committerTodd Malsbary <todd.malsbary@intel.com>2017-02-10 13:53:27 -0800
commit866d0fd3e69689818f60fa79872498a2f7cb1a57 (patch)
treebbf2de0331ac7456815f48bce8075ba3cb3e7167
parentf4329ee35770288e2d42e10a4f99e4276a15ea00 (diff)
Build with IoTivity master.wip
Change-Id: I3acd54c26dec2fa3459f7a120967472fc151d1cb Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
-rw-r--r--test/occlient.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/occlient.cpp b/test/occlient.cpp
index fdda569..62f6e41 100644
--- a/test/occlient.cpp
+++ b/test/occlient.cpp
@@ -188,8 +188,7 @@ static OCStackApplicationResult onDiscover(void *, OCDoHandle,
while (payload)
{
Resource r;
- r.uri = payload->baseURI ? payload->baseURI : host.str();
- r.uri += payload->uri ? payload->uri : "/oic/res";
+ r.uri = (payload->baseURI ? payload->baseURI : host.str()) + "/oic/res";
g_resources.push_back(r);
OCResourcePayload *resource = (OCResourcePayload *) payload->resources;
while (resource)