]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix some wrong usage of ATTRIBUTE_NONNULL()
authorBihong Yu <yubihong@huawei.com>
Sat, 6 Jun 2020 10:52:35 +0000 (18:52 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 9 Jun 2020 09:39:07 +0000 (11:39 +0200)
commit2a372a5ad5fab3bf26fb9bea019d38fa04ba8b34
treeff3a026d3d4e38a33ab8f4176015d5827726ca1b
parentf225f37a8a49cedb847488599cf30c08567ba279
Fix some wrong usage of ATTRIBUTE_NONNULL()

The virStateInitialize() function has ATTRIBUTE_NONNULL()
referring to @root argument (incorrectly anyway) but in
daemonRunStateInit() NULL is passed in anyway.

Then there is virCommandAddArgPair() which also has
ATTRIBUTE_NONNULL() for one of its arguments and then checks the
argument for being NULL anyways.

Signed-off-by:Bihong Yu <yubihong@huawei.com>
Reviewed-by:Chuan Zheng <zhengchuan@huawei.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/libvirt_internal.h
src/util/vircommand.h