Re: [libvirt] [PATCH v3] virDomainChrGetDomainPtrsInternal: Return an integer

2016-06-03 Thread Peter Krempa
On Fri, Jun 03, 2016 at 09:24:56 +0200, Michal Privoznik wrote: > There's this problem on the recent gcc-6.1: > > In file included from conf/domain_conf.c:37:0: > conf/domain_conf.c: In function 'virDomainChrPreAlloc': > conf/domain_conf.c:14109:35: error: potential null pointer dereference >

[libvirt] [PATCH v3] virDomainChrGetDomainPtrsInternal: Return an integer

2016-06-03 Thread Michal Privoznik
There's this problem on the recent gcc-6.1: In file included from conf/domain_conf.c:37:0: conf/domain_conf.c: In function 'virDomainChrPreAlloc': conf/domain_conf.c:14109:35: error: potential null pointer dereference [-Werror=null-dereference] return VIR_REALLOC_N(*arrPtr, *cntPtr + 1);