aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/ethercat
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2015-02-04 22:30:20 -0500
committerAnders Broman <a.broman58@gmail.com>2015-02-05 08:51:44 +0000
commit2bcd38fec409357d463193b55cecc446b5065b3f (patch)
tree4773c32a7594eab3116d5665fc603bc6f42e61d4 /plugins/ethercat
parent8bad9edf06cd347add32561be77fde4fb44afb5b (diff)
ethercat: add default case in FoeFormatter
Should probably fix an unintialized memory access caught by valgrind, although I can't reproduce it because out-of-tree plugins are still broken. Bug: 10919 Change-Id: Ib8c46e13922f25260ca0e8886368f5ce24e3d0b0 Reviewed-on: https://code.wireshark.org/review/6962 Reviewed-by: Guy Harris <guy@alum.mit.edu> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'plugins/ethercat')
-rw-r--r--plugins/ethercat/packet-ecatmb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/ethercat/packet-ecatmb.c b/plugins/ethercat/packet-ecatmb.c
index b0f2e133bc..f7b2c32b2e 100644
--- a/plugins/ethercat/packet-ecatmb.c
+++ b/plugins/ethercat/packet-ecatmb.c
@@ -405,6 +405,8 @@ static void FoeFormatter(tvbuff_t *tvb, gint offset, char *szText, gint nMax, gu
else
g_snprintf ( szText, nMax, "FoE BUSY (%d/%d)", foe.aFoeHeaderDataUnion.v2.Done, foe.aFoeHeaderDataUnion.v2.Entire);
break;
+ default:
+ g_snprintf ( szText, nMax, "FoE Unknown");
}
}