We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9ba3f93 + 26245e2 commit 19a2d0cCopy full SHA for 19a2d0c
1 file changed
src/emc/tooldata/tooldata_common.cc
@@ -388,6 +388,13 @@ int tooldata_save(const char *filename)
388
if (!is_random_toolchanger) {return 0;}
389
filename = DB_SPINDLE_SAVE; //one entry tbl (nonran only)
390
} else {
391
+ // filename == NULL happens without ini entry [EMCIO]TOOL_TABLE
392
+ // and a Task::emcToolSetOffset is performed.
393
+ if (!filename) {
394
+ fprintf(stderr, "%s: No filename. Are you missing INI-entry [EMCIO]TOOL_TABLE?\n",
395
+ __PRETTY_FUNCTION__);
396
+ return -1;
397
+ }
398
if (filename[0] == 0) {
399
UNEXPECTED_MSG;
400
}
0 commit comments