commit 454f416154a4aac57c9956f6458b2ae6380a85a9
parent 3519314e2eb3511df849b60f6350d40059909769
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 6 Apr 2025 09:56:01 +0200
-accept empty string in lang parser
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/util/lang.c b/src/util/lang.c
@@ -84,6 +84,7 @@ TALER_pattern_matches (const char *pattern,
while (isspace ((int) *qp))
qp++;
GNUNET_break_op ( (NULL == qp) ||
+ (0 == strlen (qp)) ||
(1 == sscanf (qp,
"q=%lf",
&q)) );