summaryrefslogtreecommitdiffstats
path: root/lib/ptm_lib.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2018-02-02 18:10:09 +0100
committerRenato Westphal <renato@opensourcerouting.org>2018-02-02 19:31:20 +0100
commitb599ec55f4b34607c529074d167284c6c06d246a (patch)
tree5238a3b9b73133d7b8db95b96c62d7a9cdb4a145 /lib/ptm_lib.c
parenttests: fix warnings related to afi/safi constants (diff)
downloadfrr-b599ec55f4b34607c529074d167284c6c06d246a.tar.xz
frr-b599ec55f4b34607c529074d167284c6c06d246a.zip
*: silence '-Wmaybe-uninitialized' warnings on NetBSD
None of these variables can actually be used before being initialized, but unfortunately some old compilers are not smart enough to detect that. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
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 28d26149e..dbfd2dc9f 100644
--- a/lib/ptm_lib.c
+++ b/lib/ptm_lib.c
@@ -347,7 +347,7 @@ int ptm_lib_process_msg(ptm_lib_handle_t *hdl, int fd, char *inbuf, int inlen,
{
int rc, len;
char client_name[32];
- int cmd_id, type, ver, msglen;
+ int cmd_id = 0, type = 0, ver = 0, msglen = 0;
csv_t *csv;
ptm_lib_msg_ctxt_t *p_ctxt = NULL;