Re: [osinfo PATCH 2/2] Handle NULL GError **

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Nov 25, 2011 at 2:41 PM, Christophe Fergeau <cfergeau@xxxxxxxxxx> wrote:
> It's valid to pass NULL GError ** around when we are not interested
> in error reporting. This means we have to make sure the GError** is
> not NULL before dereferencing it. In particular, the right way of
> testing if GError **err; is set is to do if (err && *err) {}
> This commit adds a helper to do this check and uses it where needed.

  Looks correct! Ack!

-- 
Regards,

Zeeshan Ali (Khattak)
FSF member#5124


[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux