diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2018-11-10 10:54:32 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2018-11-10 10:54:34 +0100 |
commit | 6a89f5858d57966c33a8d37b2176e9f650f64e63 (patch) | |
tree | bb1c81b86e287aebd50843ac48a2a9c22b4c1d0d /src | |
parent | f18c09c68108873abb7881c96068b2449a548290 (diff) | |
download | gnutls-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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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] |