Re: [PATCH] kconfig: Fix checking return value of 'fwrite'

From: Cong Wang
Date: Thu Oct 06 2011 - 22:35:21 EST


ä 2011å10æ06æ 19:14, Reinhard Tartler åé:
fwrite indicates '1' written member if a zero-length string is written.

For completeness, xfwrite() is called like this,

xfwrite(str, strlen(str), 1, data);

so if strlen() returns 0, xfwrite() will print out the error message,
which is wrong, no error in this case.

Acked-by: WANG Cong <amwang@xxxxxxxxxx>

Thanks!
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/