diff options
Diffstat (limited to 'xkbpath.c')
-rw-r--r-- | xkbpath.c | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -324,11 +324,13 @@ XkbAddFileToCache(char *name, unsigned type, char *path, void *data) entry = uTypedAlloc(FileCacheEntry); if (entry != NULL) { - entry->name = name; - entry->type = type; - entry->path = path; - entry->data = data; - entry->next = fileCache; + *entry = (FileCacheEntry) { + .name = name, + .type = type, + .path = path, + .data = data, + .next = fileCache + }; fileCache = entry; } return NULL; |