From 63033a0a7d2e1f09a2f1db2f5cbffd79556b9203 Mon Sep 17 00:00:00 2001 From: Timo Pollmeier Date: Mon, 7 Jul 2025 13:37:05 +0200 Subject: [PATCH] Fix: Do not use macros for not setting regex flags Instead of using G_REGEX_DEFAULT and G_REGEX_MATCH_DEFAULT, 0 is used to indicate no flags. This is done for backward-compatibility of with older GLib versions. --- util/streamvalidator.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/util/streamvalidator.c b/util/streamvalidator.c index 47eaaf965..43e14eaca 100644 --- a/util/streamvalidator.c +++ b/util/streamvalidator.c @@ -92,8 +92,7 @@ gvm_stream_validator_new (const char *expected_hash_str, size_t expected_size, gcry_md_hd_t gcrypt_md_hd; if (hex_regex == NULL) - hex_regex = g_regex_new ("^(?:[0-9A-Fa-f][0-9A-Fa-f])+$", G_REGEX_DEFAULT, - G_REGEX_MATCH_DEFAULT, NULL); + hex_regex = g_regex_new ("^(?:[0-9A-Fa-f][0-9A-Fa-f])+$", 0, 0, NULL); *validator_out = NULL; if (g_strv_length (split_hash_str) != 2)