From 44753b81a31c23a3b7729c9a1c72c98be49de920 Mon Sep 17 00:00:00 2001 From: zrj Date: Tue, 11 Oct 2016 17:00:58 +0300 Subject: [PATCH] usr.bin/rfcomm_sppd: Avoid gcc warnings. --- usr.bin/rfcomm_sppd/rfcomm_sppd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/rfcomm_sppd/rfcomm_sppd.c b/usr.bin/rfcomm_sppd/rfcomm_sppd.c index 6bed6eac9b..c46478cf65 100644 --- a/usr.bin/rfcomm_sppd/rfcomm_sppd.c +++ b/usr.bin/rfcomm_sppd/rfcomm_sppd.c @@ -331,7 +331,7 @@ open_client(bdaddr_t *laddr, bdaddr_t *raddr, int lm, const char *service) struct linger l; char *ep; int fd; - uint8_t channel; + uint8_t channel = 0; /* avoid gcc warnings */ for (s = services ; ; s++) { if (s->name == NULL) { -- 2.11.4.GIT