diff options
Diffstat (limited to 'sapi/cgi/cgi_main.c')
-rw-r--r-- | sapi/cgi/cgi_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index 4b47c41484..e5d3dba575 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -2093,8 +2093,10 @@ consult the installation file that came with this distribution, or visit \n\ fseek(file_handle.handle.fp, pos - 1, SEEK_SET); } } + CG(shebang_len) = ftell(file_handle.handle.fp); CG(start_lineno) = 2; } else { + CG(shebang_len) = 0; rewind(file_handle.handle.fp); } } |