Fix:binfile:Fixed possible null pointer dereferencing
authorrikky <rikky@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Wed, 31 Aug 2011 21:43:20 +0000 (21:43 +0000)
committerrikky <rikky@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Wed, 31 Aug 2011 21:43:20 +0000 (21:43 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4737 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/map/binfile/binfile.c

index 26cff20..2b52dfc 100644 (file)
@@ -226,9 +226,9 @@ binfile_read_eoc64(struct file *fi)
                        dbg(1,"eoc wrong\n");
                        eoc=NULL;
                }
+               dbg(1,"eoc64 ok 0x%Lx 0x%Lx\n",eoc->zip64eofst,eoc->zip64ecsz);
        }
        file_data_free(fi,(unsigned char *)eocl);
-       dbg(1,"eoc64 ok 0x%Lx 0x%Lx\n",eoc->zip64eofst,eoc->zip64ecsz);
        return eoc;
 }