mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 07:07:52 +01:00
Don't strlen before checking for NULL
This commit is contained in:
parent
a28e350cff
commit
09351c34e9
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue