At Wed, 10 Apr 2013 16:10:44 +0800,
Liu Yuan wrote:
> 
> On 04/10/2013 12:01 PM, MORITA Kazutaka wrote:
> > +   ret = fgets(input, sizeof(input), stdin);
> > +   if (ret != NULL && strncasecmp(input, "yes", 3) != 0)
> 
> Seems that this can't handle ret == NULL case. If fgets return NULL,
> we'll wrongly proceed.

Oops, thanks for the catch.  I'll send v3.

Thanks,

Kazutaka
-- 
sheepdog mailing list
[email protected]
http://lists.wpkg.org/mailman/listinfo/sheepdog

Reply via email to