Marcus Meissner : winedump: Check return value of fetch_block (Coverity).

Alexandre Julliard julliard at winehq.org
Wed Feb 20 06:46:36 CST 2008


Module: wine
Branch: master
Commit: 8063d6572bfd1ad316187136ee94840ad84d1a02
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8063d6572bfd1ad316187136ee94840ad84d1a02

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Tue Feb 19 22:46:04 2008 +0100

winedump: Check return value of fetch_block (Coverity).

---

 tools/winedump/lnk.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/tools/winedump/lnk.c b/tools/winedump/lnk.c
index 53d2a55..de1e95a 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");




More information about the wine-cvs mailing list