diff options
Diffstat (limited to 'nx-X11')
-rw-r--r-- | nx-X11/programs/Xserver/xkb/xkbUtils.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/xkb/xkbUtils.c b/nx-X11/programs/Xserver/xkb/xkbUtils.c index 028f32454..21a5ce76a 100644 --- a/nx-X11/programs/Xserver/xkb/xkbUtils.c +++ b/nx-X11/programs/Xserver/xkb/xkbUtils.c @@ -685,6 +685,10 @@ unsigned act; else group= newGroup; } else { +#ifdef NXAGENT_SERVER + /* we have seen division by zero here */ + if (ctrls->num_groups != 0) +#endif group%= ctrls->num_groups; } } |