From: Ziran Sun Date: Fri, 14 Jul 2017 10:11:59 +0000 (+0100) Subject: Correct misuse of resource interface for type. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9a5b3cae4734933bf0580bfe930eb421d298a340;p=platform%2Fupstream%2Fiotivity.git Correct misuse of resource interface for type. Change-Id: I0fdbee9a909e9fe0f0a7ac9a0d52fb2d0c6b7be4 Signed-off-by: Ziran Sun Reviewed-on: https://gerrit.iotivity.org/gerrit/21451 Tested-by: jenkins-iotivity Reviewed-by: Phil Coval --- diff --git a/resource/csdk/stack/src/ocresource.c b/resource/csdk/stack/src/ocresource.c index 7338d02..4fa0a9c 100644 --- a/resource/csdk/stack/src/ocresource.c +++ b/resource/csdk/stack/src/ocresource.c @@ -224,7 +224,7 @@ OCStackResult ExtractFiltersFromQuery(const char *query, char **filterOne, char { *filterOne = value; // if } - else if (strncasecmp(key, OC_RSRVD_RESOURCE_TYPE, sizeof(OC_RSRVD_INTERFACE) - 1) == 0) + else if (strncasecmp(key, OC_RSRVD_RESOURCE_TYPE, sizeof(OC_RSRVD_RESOURCE_TYPE) - 1) == 0) { *filterTwo = value; // rt }