diff options
author | rl1987 <rl1987@sdf.lonestar.org> | 2018-02-22 19:52:40 +0100 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-03-28 07:39:03 -0400 |
commit | 09351c34e9bea4d29fb6f4ac8d40e3bee49e12fc (patch) | |
tree | 002d4d6adc4d932c406c69417ad26c3306f24609 | |
parent | a28e350cff1572a1e5a0c5df93f6e6005904689a (diff) | |
download | tor-09351c34e9bea4d29fb6f4ac8d40e3bee49e12fc.tar.gz tor-09351c34e9bea4d29fb6f4ac8d40e3bee49e12fc.zip |
Don't strlen before checking for NULL
-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 497b60be15..5ae4d04082 100644 --- 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; |