tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 09351c34e9bea4d29fb6f4ac8d40e3bee49e12fc
parent a28e350cff1572a1e5a0c5df93f6e6005904689a
Author: rl1987 <rl1987@sdf.lonestar.org>
Date:   Thu, 22 Feb 2018 19:52:40 +0100

Don't strlen before checking for NULL

Diffstat:
Msrc/common/util.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/common/util.c b/src/common/util.c @@ -1079,7 +1079,7 @@ string_is_valid_dest(const char *string) { char *tmp = NULL; int retval; - size_t len = strlen(string); + size_t len; if (string == NULL) return 0;