summaryrefslogtreecommitdiff
path: root/src/util/lang.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-10-30 00:26:21 +0100
committerChristian Grothoff <christian@grothoff.org>2020-10-30 00:26:21 +0100
commitafc72f1f4752340bfd119e3619a79fa2743d6478 (patch)
tree292419b7e813da50e40488ad9bb16975651acaa8 /src/util/lang.c
parent11627b38bbbe1942f8ad2667bc8297478879c6bd (diff)
downloadexchange-afc72f1f4752340bfd119e3619a79fa2743d6478.tar.gz
exchange-afc72f1f4752340bfd119e3619a79fa2743d6478.tar.bz2
exchange-afc72f1f4752340bfd119e3619a79fa2743d6478.zip
make static analysis happy
Diffstat (limited to 'src/util/lang.c')
-rw-r--r--src/util/lang.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/lang.c b/src/util/lang.c
index 3f6a4291..ffc50a55 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)