]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
syntax-check: Fix regex for sc_require_attribute_cleanup_initialization
authorPeter Krempa <pkrempa@redhat.com>
Fri, 5 Nov 2021 09:13:07 +0000 (10:13 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 5 Nov 2021 14:00:53 +0000 (15:00 +0100)
When I was cleaning up the regex after we removed most of our custom
autofree helpers I've forgot to delete one closing brace, thus the regex
was not matching anything.

Fixes: 65f702020e8
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
build-aux/syntax-check.mk

index 2a6e2f86a142d1d97bab1cf80aa1ae380b613117..4d396699c92a4524f80d633eb3c6cde29feece6e 100644 (file)
@@ -910,7 +910,7 @@ sc_prohibit_backslash_alignment:
 # Rule to ensure that variables declared using a cleanup macro are
 # always initialized.
 sc_require_attribute_cleanup_initialization:
-       @prohibit='((g_auto(ptr|free|slist)?)|VIR_AUTOCLOSE)) *[^=]+;' \
+       @prohibit='((g_auto(ptr|free|slist)?)|VIR_AUTOCLOSE) *[^=]+;' \
        in_vc_files='\.[chx]$$' \
        halt='variable declared with a cleanup macro must be initialized' \
          $(_sc_search_regexp)