summaryrefslogtreecommitdiff
path: root/src/journal/catalog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/journal/catalog.c')
-rw-r--r--src/journal/catalog.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/journal/catalog.c b/src/journal/catalog.c
index 6775535b17..03d386cc64 100644
--- a/src/journal/catalog.c
+++ b/src/journal/catalog.c
@@ -592,13 +592,10 @@ static int open_mmap(const char *database, int *_fd, struct stat *_st, void **_p
}
static const char *find_id(void *p, sd_id128_t id) {
- CatalogItem key, *f = NULL;
+ CatalogItem *f = NULL, key = { .id = id };
const CatalogHeader *h = p;
const char *loc;
- zero(key);
- key.id = id;
-
loc = setlocale(LC_MESSAGES, NULL);
if (loc && loc[0] && !streq(loc, "C") && !streq(loc, "POSIX")) {
strncpy(key.language, loc, sizeof(key.language));