projects
/
privoxy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
create_server_ssl_connection(): Declare a variable at the beginning of the code block
[privoxy.git]
/
jcc.c
diff --git
a/jcc.c
b/jcc.c
index
8d99b1f
..
d8e25d5
100644
(file)
--- a/
jcc.c
+++ b/
jcc.c
@@
-5182,7
+5182,10
@@
int main(int argc, char **argv)
}
#endif
}
#endif
- chdir("/");
+ if (chdir("/") != 0)
+ {
+ log_error(LOG_LEVEL_FATAL, "Failed to cd into '/': %E");
+ }
} /* -END- if (daemon_mode) */
} /* -END- if (daemon_mode) */