diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-10-01 18:14:17 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-10-01 18:14:17 -0400 |
commit | 80b515b85fdfbcd645cb1920e398b3f2f6e85a31 (patch) | |
tree | 67f6c46d6bd7ee506e688878e6106a66a6ebdec1 | |
parent | 165aaf560a7249a388e916659d55ec6fa1d2fd24 (diff) | |
download | tor-80b515b85fdfbcd645cb1920e398b3f2f6e85a31.tar.gz tor-80b515b85fdfbcd645cb1920e398b3f2f6e85a31.zip |
Initialize fd values in tor_port_check_forwarding to -1
-rw-r--r-- | src/common/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c index ef9c5bb624..b5a3ade2bd 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -3226,7 +3226,7 @@ tor_check_port_forwarding(const char *filename, int dir_port, int or_port, /* Start the child, if it is not already running */ if (-1 == child_pid && time_to_run_helper < now) { - int fd_out, fd_err; + int fd_out=-1, fd_err=-1; /* Assume tor-fw-helper will succeed, start it later*/ time_to_run_helper = now + TIME_TO_EXEC_FWHELPER_SUCCESS; |