On 10/25/2016 01:19 AM, [email protected] wrote:
        }
+       if (size > 0)
+       {
+               ptr = malloc(size);
+               if (ptr)
+               {
+                       memset(ptr, 0, size);
+               }
+       }
        return ptr;
 }

Hello Ding Yemin,

Please use calloc() instead of open coding it.

Thanks,

Bart.

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel

Reply via email to