summaryrefslogtreecommitdiffstats
path: root/arabic/katoob/files/patch-src-init.c
blob: 7bff8d0267b90d9cf59e25fbb488623d0cdd3b87 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- src/init.c  Tue Aug 26 07:54:35 2003
+++ /home/samy/development/katoob/src/init.c    Thu Aug 28 00:36:48 2003
@@ -101,7 +101,18 @@
          katoob->xkb_grps[i] =
            XGetAtomName (GDK_DISPLAY (), kbinfo->names->groups[i]);
        }
+         else
+       {
+         katoob->xkb_grps[i] = NULL;
+       }
        }
+   }
+
+/* Let's NULL all the remaining array. */
+      while (grpnum < XkbNumKbdGroups)
+   {
+     katoob->xkb_grps[grpnum] = NULL;
+     ++grpnum;
    }
 
       XkbGetControls (GDK_DISPLAY (), XkbAllControlsMask, kbinfo);