Merge pull request #4617 from rvalieris/fix

check for both arguments NULL on strings_differ
This commit is contained in:
Orestis Floros 2021-10-22 17:40:27 +02:00 committed by GitHub
commit b7af69cba8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -173,6 +173,9 @@ static bool strings_differ(char *a, char *b) {
if (a_null != b_null) {
return true;
}
if (a_null && b_null) {
return false;
}
return strcmp(a, b) != 0;
}