Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix #2

Open
zcream opened this issue Sep 29, 2021 · 0 comments
Open

Bugfix #2

zcream opened this issue Sep 29, 2021 · 0 comments

Comments

@zcream
Copy link

zcream commented Sep 29, 2021

I had to change

#if SHOW_ERROR_LINE
  for(i=0; i<=sc->file_i; i++) {
    if (sc->load_stack[sc->file_i].kind & port_file) {
      fname = sc->load_stack[i].rep.stdio.filename;
      if(fname)
        sc->free(fname);
    }
  }
#endif

in scheme.c

to

if(fname && strlen(fname))

Else it crashes, if fname is not a Null pointer but it is not set i.e. frame = ""

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant