diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-10-30 00:26:21 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-10-30 00:26:21 +0100 |
commit | afc72f1f4752340bfd119e3619a79fa2743d6478 (patch) | |
tree | 292419b7e813da50e40488ad9bb16975651acaa8 | |
parent | 11627b38bbbe1942f8ad2667bc8297478879c6bd (diff) | |
download | exchange-afc72f1f4752340bfd119e3619a79fa2743d6478.tar.gz exchange-afc72f1f4752340bfd119e3619a79fa2743d6478.tar.bz2 exchange-afc72f1f4752340bfd119e3619a79fa2743d6478.zip |
make static analysis happy
m--------- | contrib/gana | 0 | ||||
-rw-r--r-- | src/exchange/taler-exchange-httpd_keystate.c | 4 | ||||
-rw-r--r-- | src/util/lang.c | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/contrib/gana b/contrib/gana -Subproject 32acd55e3d886322dab80bfbed4e73f59001347 +Subproject 9d38f712c153727dbb895673d6d9841be57c12c diff --git a/src/exchange/taler-exchange-httpd_keystate.c b/src/exchange/taler-exchange-httpd_keystate.c index 2d80d03a..e963928d 100644 --- a/src/exchange/taler-exchange-httpd_keystate.c +++ b/src/exchange/taler-exchange-httpd_keystate.c @@ -2501,7 +2501,7 @@ TEH_handler_keys (const struct TEH_RequestHandler *rh, GNUNET_break_op (0); return TALER_MHD_reply_with_error (connection, MHD_HTTP_BAD_REQUEST, - TALER_EC_KEYS_HAVE_NOT_NUMERIC, + TALER_EC_KEYS_HAVE_NOT_NUMERIC, // FIXME: use more GENERIC code! have_cherrypick); } /* The following multiplication may overflow; but this should not really @@ -2530,7 +2530,7 @@ TEH_handler_keys (const struct TEH_RequestHandler *rh, GNUNET_break_op (0); return TALER_MHD_reply_with_error (connection, MHD_HTTP_FORBIDDEN, - TALER_EC_KEYS_HAVE_NOT_NUMERIC, + TALER_EC_KEYS_HAVE_NOT_NUMERIC, // FIXME: use more GENERIC code! have_fakenow); } if (TEH_allow_keys_timetravel) 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) |