summaryrefslogtreecommitdiffstats
path: root/lib/ptm_lib.c
diff options
context:
space:
mode:
authorVincent JARDIN <vincent.jardin@6wind.com>2017-10-08 23:46:24 +0200
committerVincent JARDIN <vincent.jardin@6wind.com>2017-10-08 23:46:24 +0200
commit649579afb38ed0605285799aa5b51db714eeb15b (patch)
tree576b4a0dd85909d26499cbe58d8519e0e8c55cf6 /lib/ptm_lib.c
parentbgpd: fix clang warning (diff)
downloadfrr-649579afb38ed0605285799aa5b51db714eeb15b.tar.xz
frr-649579afb38ed0605285799aa5b51db714eeb15b.zip
lib: fix clang warning
Properly initialize to avoid "Branch condition evaluates to a garbage value" warning. Signed-off-by: Vincent Jardin <vincent.jardin@6wind.com>
Diffstat (limited to 'lib/ptm_lib.c')
-rw-r--r--lib/ptm_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ptm_lib.c b/lib/ptm_lib.c
index f50d1e298..e881d4922 100644
--- a/lib/ptm_lib.c
+++ b/lib/ptm_lib.c
@@ -330,7 +330,7 @@ int ptm_lib_process_msg(ptm_lib_handle_t *hdl, int fd, char *inbuf, int inlen,
char client_name[32];
int cmd_id, type, ver, msglen;
csv_t *csv;
- ptm_lib_msg_ctxt_t *p_ctxt;
+ ptm_lib_msg_ctxt_t *p_ctxt = NULL;
len = _ptm_lib_read_ptm_socket(fd, inbuf, PTMLIB_MSG_HDR_LEN);
if (len <= 0)