]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Don't strlen before checking for NULL
authorrl1987 <rl1987@sdf.lonestar.org>
Thu, 22 Feb 2018 18:52:40 +0000 (19:52 +0100)
committerNick Mathewson <nickm@torproject.org>
Wed, 28 Mar 2018 11:39:03 +0000 (07:39 -0400)
src/common/util.c

index 497b60be1530d7df592ce2296a4f72c0ce161095..5ae4d04082da37169165fc42dbd03f512015e062 100644 (file)
@@ -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;