X-Git-Url: https://ocean-lang.org/code/?p=ocean;a=blobdiff_plain;f=csrc%2Foceani.mdc;h=dd02e81ab89e7b01855e145973bf0def5252b6d3;hp=27c0c32493ecba0ee96916ae13135e2f69558790;hb=89377f910b5d607fdcdb2d7152ca3a58668a3de0;hpb=ecf0ed40119116755e163ca8f20e37e279286082 diff --git a/csrc/oceani.mdc b/csrc/oceani.mdc index 27c0c32..dd02e81 100644 --- a/csrc/oceani.mdc +++ b/csrc/oceani.mdc @@ -1316,6 +1316,8 @@ subclasses, and to access these we need to be able to `cast` the static int __fput_loc(struct exec *loc, FILE *f) { + if (!loc) + return 0; if (loc->line >= 0) { fprintf(f, "%d:%d: ", loc->line, loc->column); return 1;