Overview
SHA1 Hash: | b4f9d90ca37ea1dc8fc3670b636f05ade9c78c4f |
---|---|
Date: | 2008-05-22 12:38:23 |
User: | drh |
Comment: | Fix a segfault on the "fossil cgi" command. |
Timelines: | ancestors | descendants | both | trunk |
Other Links: | files | ZIP archive | manifest |
Tags And Properties
- branch=trunk inherited from [a28c83647d]
- sym-trunk inherited from [a28c83647d]
Changes
[hide diffs]Modified src/main.c from [c15347d3f4] to [5d729a0cb8].
@@ -573,10 +573,12 @@ if( g.argc==3 && strcmp(g.argv[1],"cgi")==0 ){ zFile = g.argv[2]; }else{ zFile = g.argv[1]; } + g.httpOut = stdout; + g.httpIn = stdin; g.cgiPanic = 1; blob_read_from_file(&config, zFile); while( blob_line(&config, &line) ){ if( !blob_token(&line, &key) ) continue; if( blob_buffer(&key)[0]=='#' ) continue;