From dfdb8f54ccbbe6d15021c2b0d5e51ded627f6b51 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Sun, 23 Mar 2025 23:47:38 +0100 Subject: [PATCH] cppcheck ctunullpointer --- client/src/util.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/src/util.c b/client/src/util.c index f01067534..6a54387d2 100644 --- a/client/src/util.c +++ b/client/src/util.c @@ -745,6 +745,9 @@ void SwapEndian64ex(const uint8_t *src, const size_t len, const uint8_t blockSiz // ------------------------------------------------------------------------- int param_getptr(const char *line, int *bg, int *en, int paramnum) { int i; + if (line == NULL) { + return 1; + } int len = strlen(line); *bg = 0;