Re: [PATCH] util: Prevent a NULl pointer from being accessed

2020-02-12 Thread Peter Krempa
On Wed, Feb 12, 2020 at 22:10:20 +0800, Yi Wang wrote: > From: Huang Zijiang > > virJSONValueObjectGetObject maybe return NULL if the key is > missing or if value is not the correct TYPE, so we have to prevent > a NULl pointer from being accessed. > > Signed-off-by: Huang Zijiang >

Re: [PATCH] util: Prevent a NULl pointer from being accessed

2020-02-12 Thread Peter Krempa
On Wed, Feb 12, 2020 at 22:10:42 +0800, Yi Wang wrote: > From: Huang Zijiang > > virJSONValueObjectGetObject maybe return NULL if the key is > missing or if value is not the correct TYPE, so we have to prevent > a NULl pointer from being accessed. > > Signed-off-by: Huang Zijiang >

[PATCH] util: Prevent a NULl pointer from being accessed

2020-02-12 Thread Yi Wang
From: Huang Zijiang virJSONValueObjectGetObject maybe return NULL if the key is missing or if value is not the correct TYPE, so we have to prevent a NULl pointer from being accessed. Signed-off-by: Huang Zijiang Signed-off-by: Yi Wang --- src/util/virqemu.c | 5 + 1 file changed, 5