aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@gnumonks.org>2013-05-22 02:05:28 +0200
committerPablo Neira Ayuso <pablo@gnumonks.org>2013-05-22 02:06:33 +0200
commit3cf3a732ea87c0e31dfdc2cbf9f526fe05d7df45 (patch)
treefab42cfec28089ea87036ad15e0acb4a381ec38f /src
parent3eef26fc8ae93ad5fc6238e59858ae0654f8d8ca (diff)
osmux: fix warning spotted by clang --analyze
osmux.c:622:20: warning: Value stored to 'osmuxh' during its initialization is never read struct osmux_hdr *osmuxh = (struct osmux_hdr *)msg->data; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Reported by Holger Hans Peter Freyther.
Diffstat (limited to 'src')
-rw-r--r--src/osmux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmux.c b/src/osmux.c
index 33ab7ad..ad04241 100644
--- a/src/osmux.c
+++ b/src/osmux.c
@@ -619,7 +619,7 @@ int osmux_snprintf(char *buf, size_t size, struct msgb *msg)
int ret;
unsigned int offset = 0;
int msg_len = msg->len, len = size;
- struct osmux_hdr *osmuxh = (struct osmux_hdr *)msg->data;
+ struct osmux_hdr *osmuxh;
int this_len = 0;
while (msg_len > 0) {