From: Zeeshan Ali (Khattak) Date: Mon, 4 Jan 2010 17:12:26 +0000 (+0200) Subject: If target is not a URN, no need to deal with version X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fa9503d44b62db03cf64b4c039f982fc460b83aa;p=profile%2Fivi%2FGSSDP.git If target is not a URN, no need to deal with version --- diff --git a/libgssdp/gssdp-resource-group.c b/libgssdp/gssdp-resource-group.c index 89980a5..9a98409 100644 --- a/libgssdp/gssdp-resource-group.c +++ b/libgssdp/gssdp-resource-group.c @@ -1061,6 +1061,11 @@ create_target_regex (const char *target, GError **error) char *version; char *version_pattern; + if (strncmp (target, "urn:", 4) != 0) { + /* target is not a URN, No need to deal with version. */ + return g_regex_new (target, 0, 0, error); + } + version_pattern = "[0-9]+$"; /* Make sure we have enough room for version pattern */ pattern = g_strndup (target,