Index: tools/skdiff_utils.cpp |
diff --git a/tools/skdiff_utils.cpp b/tools/skdiff_utils.cpp |
index 9157ac6b918c2568cce427ad968002a5d2b05281..14a9fec7e4a126c6bfaf6d7998fbd8a442f3a8f1 100644 |
--- a/tools/skdiff_utils.cpp |
+++ b/tools/skdiff_utils.cpp |
@@ -103,7 +103,7 @@ static SkString replace_all(const SkString &input, |
const char *first_char = input_cstr; |
const char *match_char; |
size_t oldSubstringLen = strlen(oldSubstring); |
- while (NULL != (match_char = strstr(first_char, oldSubstring))) { |
+ while ((match_char = strstr(first_char, oldSubstring))) { |
output.append(first_char, (match_char - first_char)); |
output.append(newSubstring); |
first_char = match_char + oldSubstringLen; |