Commit 22badee0 by Mark Adams

Fix compile warning/error due to assignment in while() loop

This causes build failures with -Werror=parentheses
parent e7c83cfb
......@@ -309,7 +309,7 @@ struct str_hash
unsigned long hash = 5381;
int c;
while (c = *str++)
while ((c = *str++))
hash = ((hash << 5) + hash) + c;
return hash;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment