remove useless setting of http_code, where it will not be used

master
Mikhail Novosyolov 2 years ago
parent 6ac8f630da
commit db1677df78
  1. 2
      webserver/doskast-trigger-connect.c

@ -72,13 +72,11 @@ main(){
int http_code = HTTP_ERROR;
if (access(DIR, W_OK) != 0) {
fprintf(stderr, "Directory %s does not exist or is not writable\n", DIR);
http_code = HTTP_ERROR;
goto out;
}
// first chdir() and then chroot()!
if (!( chdir(DIR) == 0 && chroot(DIR) == 0 )) {
fprintf(stderr, "Cannot chdir and chroot into %s\n", DIR);
http_code = HTTP_ERROR;
goto out;
}
while(FCGI_Accept() >= 0) {

Loading…
Cancel
Save