Re: if() and trailing ;

2006-07-29 Thread Simon Boulet
Hi Dale, On 29-Jul-06, at 8:25 PM, Dale Johannesen wrote: On Jul 29, 2006, at 4:33 PM, Simon Boulet wrote: Hi, After a couple hours debugging code, I figured our an if() somewhere had a trailing ; like this: if (memcmp(p, COMMUNITY, strlen(COMMUNITY)) != 0

if() and trailing ;

2006-07-29 Thread Simon Boulet
Hi, After a couple hours debugging code, I figured our an if() somewhere had a trailing ; like this: if (memcmp(p, COMMUNITY, strlen(COMMUNITY)) != 0); continue; /* failed */ The code above will always reach "continue" even when memcmp() == 0. I was