Re: [PATCH v5 1/9] scatterlist: add sg_zeroout_area() helper

From: Sagi Grimberg
Date: Tue Jun 06 2017 - 14:26:17 EST



+ while ((offset < buflen) && sg_miter_next(&miter)) {
+ unsigned int len;
+
+ len = min(miter.length, buflen - offset);
+ memset(miter.addr, '\0', len);

Why '\0' and not 0?