mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Don't strlen before checking for NULL
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user