mirror of https://gitee.com/openkylin/libvirt.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 <jtomko@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
4b95738c8f
commit
8aa0f8e6dc
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue