[gssdp] Correct arguments to g_regex_match_simple() call
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gssdp] Correct arguments to g_regex_match_simple() call
- Date: Mon, 25 Jun 2012 03:31:37 +0000 (UTC)
commit 61acf887ee3f27ada77cbc203c0b84203aff9ea0
Author: Riko Yamada <rik0yamada yahoo co jp>
Date: Sun Jun 24 16:13:46 2012 +0900
Correct arguments to g_regex_match_simple() call
We were passing RegexMatchFlags as GRegexCompileFlags.
https://bugzilla.gnome.org/show_bug.cgi?id=678744
libgssdp/gssdp-resource-browser.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgssdp/gssdp-resource-browser.c b/libgssdp/gssdp-resource-browser.c
index be19cb2..d68ca8b 100644
--- a/libgssdp/gssdp-resource-browser.c
+++ b/libgssdp/gssdp-resource-browser.c
@@ -466,8 +466,8 @@ gssdp_resource_browser_set_target (GSSDPResourceBrowser *resource_browser,
version != g_strstr_len (pattern, -1, ":")) &&
g_regex_match_simple (version_pattern,
version + 1,
- G_REGEX_MATCH_ANCHORED,
- 0)) {
+ G_REGEX_ANCHORED,
+ G_REGEX_MATCH_ANCHORED)) {
resource_browser->priv->version = atoi (version + 1);
strcpy (version + 1, version_pattern);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]