Ncea crashes with a seg-fault when operating on netcdf files without a record dimension. I am using nco version 4.2.3. The crashes occur at 2 places in ncra.c, near line 791 and near line 1032, because the lmt_rec structure is being accessed even though it is not available when operating on files without a record dimension. I fixed the crash for my use by enclosing the offending code in a if(rec_dmn_id != NCO_REC_DMN_UNDEFINED) block so that lmt_rec is never accessed if there is no record dimension. I have attached the patch I used to fix the problem.