summaryrefslogtreecommitdiff
path: root/xkbpath.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-10 13:26:39 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-11 14:35:34 -0800
commit77b1efa1c83ad64d49d1e9c085d2a496580ce6f9 (patch)
treec121541999a472231178f6d9244266a5e953341d /xkbpath.c
parent64761ee9424f755b84ab0ce02d13eda32d215a14 (diff)
downloadxorg-app-xkbcomp-77b1efa1c83ad64d49d1e9c085d2a496580ce6f9.tar.gz
Use C99 struct initializers
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'xkbpath.c')
-rw-r--r--xkbpath.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/xkbpath.c b/xkbpath.c
index ee8a91e..dc9a1df 100644
--- a/xkbpath.c
+++ b/xkbpath.c
@@ -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;