From afc72f1f4752340bfd119e3619a79fa2743d6478 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 30 Oct 2020 00:26:21 +0100 Subject: make static analysis happy --- src/util/lang.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/util/lang.c') diff --git a/src/util/lang.c b/src/util/lang.c index 3f6a4291f..ffc50a557 100644 --- a/src/util/lang.c +++ b/src/util/lang.c @@ -50,6 +50,8 @@ TALER_language_matches (const char *language_pattern, char *qp = strtok_r (NULL, ";", &sptr2); double q = 1.0; + if (NULL == lp) + continue; /* should be impossible, but makes static analysis happy */ while (isspace ((int) *lp)) lp++; if (NULL != qp) -- cgit v1.2.3