netfile.cpp: fix possible compile error

error was:
 - suggest parentheses around assignment used as truth value
 - comes with Werror=parentheses
This commit is contained in:
2020-01-17 16:32:45 +01:00
parent 9ba2a4a0cf
commit 5375f0a1c2

View File

@@ -1632,7 +1632,7 @@ static bool getChunkSizeLine(STREAM_CACHE *scache,char *line,int size)
char c = 0;
int pos = 0,rn = 0,rnc = 4;
int len = 0;
while(len = read(fileno(scache->fd), &c, 1) != 0)
while((len = read(fileno(scache->fd), &c, 1)) != 0)
{
if(pos >= size)
break;