Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/emc/tooldata/tooldata_common.cc
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,13 @@ int tooldata_save(const char *filename)
if (!is_random_toolchanger) {return 0;}
filename = DB_SPINDLE_SAVE; //one entry tbl (nonran only)
} else {
// filename == NULL happens without ini entry [EMCIO]TOOL_TABLE
// and a Task::emcToolSetOffset is performed.
if (!filename) {
fprintf(stderr, "%s: No filename. Are you missing INI-entry [EMCIO]TOOL_TABLE?\n",
__PRETTY_FUNCTION__);
return -1;
}
if (filename[0] == 0) {
UNEXPECTED_MSG;
}
Expand Down
Loading