Ticket #6542: storage_hpp.patch

File storage_hpp.patch, 559 bytes (added by Alex Hagen-Zanker <ahh34@…>, 11 years ago)
  • storage.hpp

     
    201201        unbounded_array &operator = (const unbounded_array &a) {
    202202            if (this != &a) {
    203203                resize (a.size_);
    204                 std::copy (a.data_, a.data_ + a.size_, data_);
     204                if(a.data_ == NULL) {
     205                                        data_ = NULL;
     206                                } else {
     207                                        std::copy (a.data_, a.data_ + a.size_, data_);
     208                                }
    205209            }
    206210            return *this;
    207211        }