[libvirt PATCH v2 01/15] replace g_new() with g_new0() for consistency

2020-07-07 Thread Laine Stump
g_new() is used in only 3 places. Switching them to g_new0() will do no harm, reduces confusion, and helps me sleep better at night knowing that all allocated memory is initialized to 0 :-) (Yes, I *know* that in all three cases the associated memory is immediately assigned some other value. Today.

Re: [libvirt PATCH v2 01/15] replace g_new() with g_new0() for consistency

2020-07-15 Thread Ján Tomko
On a Tuesday in 2020, Laine Stump wrote: g_new() is used in only 3 places. Switching them to g_new0() will do no harm, reduces confusion, and helps me sleep better at night knowing Sweet dreams. that all allocated memory is initialized to 0 :-) (Yes, I *know* that in all three cases the assoc