diff --git a/server/TracyCharUtil.hpp b/server/TracyCharUtil.hpp index 408e59dd..ece9de1b 100644 --- a/server/TracyCharUtil.hpp +++ b/server/TracyCharUtil.hpp @@ -15,7 +15,7 @@ static inline uint32_t hash( const char* str ) uint32_t hash = 5381; int c; - while( c = *str++ ) + while( ( c = *str++ ) != 0 ) { hash = ( ( hash << 5 ) + hash ) ^ c; }