aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-enttec.c
diff options
context:
space:
mode:
authorChris Maynard <Christopher.Maynard@GTECH.COM>2012-04-04 12:47:08 +0000
committerChris Maynard <Christopher.Maynard@GTECH.COM>2012-04-04 12:47:08 +0000
commit523cbecd1a2863321c54c27253354aace18840a5 (patch)
treed440840e47fd72ab3afc5850a47234d694c2c865 /epan/dissectors/packet-enttec.c
parenta42cb82d6587605e2e0cf86a52d4c58517344fcd (diff)
Avoid some potential divide by zero errors that Clang reports.
svn path=/trunk/; revision=41923
Diffstat (limited to 'epan/dissectors/packet-enttec.c')
-rw-r--r--epan/dissectors/packet-enttec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-enttec.c b/epan/dissectors/packet-enttec.c
index ec1266f71f..15e400dc71 100644
--- a/epan/dissectors/packet-enttec.c
+++ b/epan/dissectors/packet-enttec.c
@@ -282,7 +282,7 @@ dissect_enttec_dmx_data(tvbuff_t *tvb, guint offset, proto_tree *tree)
dmx_epstr = ep_strbuf_new_label(NULL);
for (r=0; r < row_count;r++) {
for (c=0;(c < global_disp_col_count) && (((r*global_disp_col_count)+c) < ui);c++) {
- if ((c % (global_disp_col_count/2)) == 0) {
+ if ((global_disp_col_count > 1) && (c % (global_disp_col_count/2)) == 0) {
ep_strbuf_append_c(dmx_epstr, ' ');
}
v = dmx_data[(r*global_disp_col_count)+c];