Don't strlen before checking for NULL

This commit is contained in:
rl1987
2018-02-22 19:52:40 +01:00
committed by Nick Mathewson
parent a28e350cff
commit 09351c34e9
+1 -1
View 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;