summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2018-11-10 10:54:32 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2018-11-10 10:54:34 +0100
commit6a89f5858d57966c33a8d37b2176e9f650f64e63 (patch)
treebb1c81b86e287aebd50843ac48a2a9c22b4c1d0d /src
parentf18c09c68108873abb7881c96068b2449a548290 (diff)
downloadgnutls-6a89f5858d57966c33a8d37b2176e9f650f64e63.tar.gz
gnutls-cli: use assert to mark impossible pathtmp-f29
This avoids static analyzers from complaining. Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Diffstat (limited to 'src')
-rw-r--r--src/cli.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cli.c b/src/cli.c
index 5f82e1486f..60de6bc68f 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -40,6 +40,7 @@
#include <fcntl.h>
#include <netdb.h>
#include <ctype.h>
+#include <assert.h>
/* Get TCP_FASTOPEN */
#ifdef HAVE_NETINET_TCP_H
@@ -914,6 +915,8 @@ bool parse_for_inline_commands_in_buffer(char *buffer, size_t bytes,
inline_cmds->new_buffer_ptr = buffer + bytes;
}
+ assert(local_buffer_ptr != NULL);
+
inline_cmds->current_ptr = local_buffer_ptr;
if (local_buffer_ptr[0] == inline_commands_prefix[0]