[libvirt] [PATCH 3/3] libvirt-admin: do not crash on URI without a scheme
Ján Tomko
jtomko at redhat.com
Wed Apr 6 08:51:26 UTC 2016
---
src/libvirt-admin.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/libvirt-admin.c b/src/libvirt-admin.c
index 54af90c..6577c87 100644
--- a/src/libvirt-admin.c
+++ b/src/libvirt-admin.c
@@ -121,10 +121,10 @@ getSocketPath(virURIPtr uri)
}
if (!sock_path) {
- if (STRNEQ(uri->scheme, "libvirtd")) {
+ if (STRNEQ_NULLABLE(uri->scheme, "libvirtd")) {
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
_("Unsupported URI scheme '%s'"),
- uri->scheme);
+ NULLSTR(uri->scheme));
goto error;
}
if (STREQ_NULLABLE(uri->path, "/system")) {
--
2.4.10
More information about the libvir-list
mailing list