Skip to content

Commit

Permalink
'add_off.c' declared a variable inside a for() statement. This fails …
Browse files Browse the repository at this point in the history
…with gcc-4.8 (an elderly, but still used, compiler).
  • Loading branch information
Bill-Gray committed Feb 18, 2024
1 parent 0be6981 commit 49e2d46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions add_off.c
Expand Up @@ -483,7 +483,7 @@ int main( void)
extern char **environ;
int cgi_status;
const char *temp_filename = "/tmp/add_off.txt";
size_t bytes_written = 0;
size_t i, bytes_written = 0;

avoid_runaway_process( 15);
printf( "Content-type: text/html\n\n");
Expand All @@ -496,7 +496,7 @@ int main( void)
}
setbuf( lock_file, NULL);
fprintf( lock_file, "'add_off' : We're in\n");
for( size_t i = 0; environ[i]; i++)
for( i = 0; environ[i]; i++)
fprintf( lock_file, "%s\n", environ[i]);
cgi_status = initialize_cgi_reading( );
fprintf( lock_file, "CGI status %d\n", cgi_status);
Expand Down

0 comments on commit 49e2d46

Please sign in to comment.