diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2018-02-02 15:10:09 -0200 |
|---|---|---|
| committer | Renato Westphal <renato@opensourcerouting.org> | 2018-02-02 16:31:20 -0200 |
| commit | b599ec55f4b34607c529074d167284c6c06d246a (patch) | |
| tree | 5238a3b9b73133d7b8db95b96c62d7a9cdb4a145 /lib/ptm_lib.c | |
| parent | 6bba65f29f4d8801930a6a0b87bd7a2906617622 (diff) | |
*: 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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ptm_lib.c b/lib/ptm_lib.c index 28d26149e5..dbfd2dc9f8 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; |
