From: Ján Tomko Date: Wed, 13 Nov 2019 15:44:12 +0000 (+0100) Subject: libxl: do not use G_REGEX_EXTENDED X-Git-Tag: v5.10.0-rc1~197 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8aa0f8e6dca269653e637497b595022a610314dd;p=thirdparty%2Flibvirt.git libxl: do not use G_REGEX_EXTENDED This flag is not needed to use extended regular expression syntax with GRegex and it makes GRegex ignore whitespace in the regex. Remove the unintended usage, even though it should not matter in this case. Signed-off-by: Ján Tomko Reviewed-by: Peter Krempa --- diff --git a/src/libxl/libxl_capabilities.c b/src/libxl/libxl_capabilities.c index 55f6b490ec..052fbd4603 100644 --- a/src/libxl/libxl_capabilities.c +++ b/src/libxl/libxl_capabilities.c @@ -397,7 +397,7 @@ libxlCapsInitGuests(libxl_ctx *ctx, virCapsPtr caps) return -1; } - regex = g_regex_new(XEN_CAP_REGEX, G_REGEX_EXTENDED, 0, &err); + regex = g_regex_new(XEN_CAP_REGEX, 0, 0, &err); if (!regex) { virReportError(VIR_ERR_INTERNAL_ERROR, _("Failed to compile regex %s"), err->message);