diff options
Diffstat (limited to 'src/common.cc')
-rw-r--r-- | src/common.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.cc b/src/common.cc index 7d9a688a..cdc40376 100644 --- a/src/common.cc +++ b/src/common.cc @@ -100,7 +100,7 @@ WabtStringSlice wabt_string_slice_from_cstr(const char* string) { bool wabt_string_slice_is_empty(const WabtStringSlice* str) { assert(str); - return str->start == NULL || str->length == 0; + return !str->start || str->length == 0; } bool wabt_string_slices_are_equal(const WabtStringSlice* a, |