diff options
Diffstat (limited to 'src/xkmout.c')
-rw-r--r-- | src/xkmout.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xkmout.c b/src/xkmout.c index 39655be..399f4cc 100644 --- a/src/xkmout.c +++ b/src/xkmout.c @@ -724,8 +724,8 @@ WriteXKMIndicators(FILE *file, XkbFileInfo *result, XkmInfo *info) dpy = xkb->dpy; size += xkmPutCARD8(file, info->num_leds); size += xkmPutPadding(file, 3); - size += xkmPutCARD32(file, xkb->indicators->phys_indicators); if (xkb->indicators != NULL) { + size += xkmPutCARD32(file, xkb->indicators->phys_indicators); for (i = 0; i < XkbNumIndicators; i++) { XkbIndicatorMapPtr map = &xkb->indicators->maps[i]; @@ -755,6 +755,9 @@ WriteXKMIndicators(FILE *file, XkbFileInfo *result, XkmInfo *info) } } } + else { + size += xkmPutCARD32(file, 0); + } return size; } |