]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virConfSetValue: Simplify condition
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 9 Dec 2014 13:48:54 +0000 (14:48 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 15 Dec 2014 09:34:18 +0000 (10:34 +0100)
commit4523b7769dc2baf91d63cd3cb2bf164e76825d78
tree4d37831a9ddcdbdf9792dbce58435e3ba12eb02d
parentd85dcae4b2bb7277503001519e533d21133f65d4
virConfSetValue: Simplify condition

There's no need for condition of the following form:

  if (str && STREQ(str, dst))

since we have STREQ_NULLABLE macro that handles NULL cases.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virconf.c