Mercurial > hg-old > index.cgi
diff src/script.c @ 307:87c4e65074f0
Actually allow script file to be specified and fix segfault on parsing script file
author | lost |
---|---|
date | Fri, 23 Jan 2009 04:53:01 +0000 |
parents | be1abc4ac114 |
children |
line wrap: on
line diff
--- a/src/script.c Fri Jan 23 04:03:37 2009 +0000 +++ b/src/script.c Fri Jan 23 04:53:01 2009 +0000 @@ -60,7 +60,7 @@ void setup_script() { - char *script; + char *script, *oscript; long size; // read the file if needed @@ -115,6 +115,7 @@ size = strlen(script); } + oscript = script; // now parse the script file while (*script) { @@ -252,5 +253,5 @@ } if (scriptfile) - lw_free(script); + lw_free(oscript); }