[glib: 2/3] regex: Use critical messages if an unexpected NULL parameter is provided
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 2/3] regex: Use critical messages if an unexpected NULL parameter is provided
- Date: Wed, 12 Oct 2022 13:48:35 +0000 (UTC)
commit 0f869ec5c6bc6cd37a6803cc2299a5845199e758
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date: Wed Sep 21 11:33:14 2022 +0200
regex: Use critical messages if an unexpected NULL parameter is provided
As programmer error we should be consistent in using criticals.
glib/gregex.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glib/gregex.c b/glib/gregex.c
index fcc28d62f4..1baa4e2f18 100644
--- a/glib/gregex.c
+++ b/glib/gregex.c
@@ -483,7 +483,7 @@ translate_match_error (gint errcode)
break;
case PCRE2_ERROR_NULL:
/* NULL argument, this should not happen in GRegex */
- g_warning ("A NULL argument was passed to PCRE");
+ g_critical ("A NULL argument was passed to PCRE");
break;
case PCRE2_ERROR_BADOPTION:
return "bad options";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]