Skip to content

Commit 24c64dc

Browse files
committed
initialize mbev_file_struct.processed_info_loaded = false after realloc
1 parent 0561ef2 commit 24c64dc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/mbeditviz/mbeditviz_prog.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,7 @@ int mbeditviz_import_file(char *path, int format) {
442442
struct mbev_file_struct *file = &(mbev_files[mbev_num_files]);
443443
file->load_status = false;
444444
file->load_status_shown = false;
445+
file->processed_info_loaded = false;
445446
file->locked = false;
446447
file->esf_exists = false;
447448
strcpy(file->path, path);
@@ -487,6 +488,7 @@ int mbeditviz_import_file(char *path, int format) {
487488
/* load processed file info */
488489
if (mbev_status == MB_SUCCESS) {
489490
struct stat file_status;
491+
// Look for existing process output file
490492
const int fstatus = stat(file->process.mbp_ofile, &file_status);
491493
if (fstatus == 0 && (file_status.st_mode & S_IFMT) != S_IFDIR) {
492494
mbev_status =

0 commit comments

Comments
 (0)