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

File 0009-Fix-called-C-object-pointer-is-null.patch, 936 bytes (added by mt, 7 years ago)

Patch

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

    From 4f12a129c302882909de6bc47589e008e187224a 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 |    5 ++++-
     1 file changed, 4 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..289dafd 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        /* Do we need TRACE() here? */
     122        return;
     123    }
    121124
    122125    off_t block;
    123126    status_t status = fVolume->MapBlock(address, &block);