From 8063d6572bfd1ad316187136ee94840ad84d1a02 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Tue, 19 Feb 2008 22:46:04 +0100 Subject: [PATCH] winedump: Check return value of fetch_block (Coverity). --- tools/winedump/lnk.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/winedump/lnk.c b/tools/winedump/lnk.c index 53d2a55cf30..de1e95afe99 100644 --- a/tools/winedump/lnk.c +++ b/tools/winedump/lnk.c @@ -425,6 +425,8 @@ void lnk_dump(void) offset = 0; hdr = fetch_block(); + if (!hdr) + return; printf("Header\n"); printf("------\n\n");