Ignore:
Timestamp:
03/16/18 13:55:04 (6 years ago)
Author:
ymipsl
Message:

Bug fix introduced in rev. 1456

The "file" pointer of the constructor argument is a NULL pointer when writing interpolation weight, that leag to a segfault when attempt to get the "compression_level" value from the file pointer.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/XIOS_DEV_CMIP6/src/io/nc4_data_output.cpp

    r1456 r1459  
    3737      { 
    3838        SuperClass::type = (multifile) ? MULTI_FILE : ONE_FILE; 
    39         compressionLevel= file->compression_level.isEmpty() ? 0 :file->compression_level ; 
     39        if (file==NULL) compressionLevel = 0 ; 
     40        else compressionLevel= file->compression_level.isEmpty() ? 0 :file->compression_level ; 
    4041      } 
    4142 
Note: See TracChangeset for help on using the changeset viewer.