Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 1f148198 authored by Deucе's avatar Deucе 👌🏾

Handle unknown filename.

parent 3fe9759b
Pipeline #1382 passed with stage
in 9 minutes and 57 seconds
......@@ -78,6 +78,8 @@ static void newscript_handler(JSContext *cx,
return;
}
fname=JS_GetScriptFilename(cx, script);
if (fname == NULL)
fname = "<unknown>";
cs->fname=strdup(fname);
if(cs->fname)
fname=getfname(fname);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment