Ticket #9879: 0011-Fix-called-C-object-pointer-is-null.patch

File 0011-Fix-called-C-object-pointer-is-null.patch, 901 bytes (added by mt, 11 years ago)

New patch

  • src/add-ons/kernel/file_systems/udf/Icb.cpp

    From d55c0e7a9947efda8a29310892ca640f033784f8 Mon Sep 17 00:00:00 2001
    From: Murai Takashi <tmurai01@gmail.com>
    Date: Wed, 17 Jul 2013 19:39:14 +0900
    Subject: [PATCH] Fix called C++ object pointer is null
    
    ---
     src/add-ons/kernel/file_systems/udf/Icb.cpp |    4 +++-
     1 file changed, 3 insertions(+), 1 deletion(-)
    
    diff --git a/src/add-ons/kernel/file_systems/udf/Icb.cpp b/src/add-ons/kernel/file_systems/udf/Icb.cpp
    index c924966..f88f227 100644
    a b Icb::Icb(Volume *volume, long_address address)  
    116116        "%d, length = %" B_PRIu32 ")\n", volume, address.block(),
    117117        address.partition(), address.length()));
    118118
    119     if (volume == NULL)
     119    if (volume == NULL) {
    120120        fInitStatus = B_BAD_VALUE;
     121        return;
     122    }
    121123
    122124    off_t block;
    123125    status_t status = fVolume->MapBlock(address, &block);