From c9958c4fc55a916885defc3f91f4b0834ba891b4 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Wed, 10 Aug 2022 14:00:53 +0200 Subject: tree-wide: check parameter before dereferencing --- src/shared/journal-importer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shared/journal-importer.c') diff --git a/src/shared/journal-importer.c b/src/shared/journal-importer.c index 7c355b6c89..66481da267 100644 --- a/src/shared/journal-importer.c +++ b/src/shared/journal-importer.c @@ -36,7 +36,7 @@ void journal_importer_cleanup(JournalImporter *imp) { } static char* realloc_buffer(JournalImporter *imp, size_t size) { - char *b, *old = imp->buf; + char *b, *old = ASSERT_PTR(imp)->buf; b = GREEDY_REALLOC(imp->buf, size); if (!b) -- cgit v1.2.3