* [PATCH] libxc: check pointer is not null before printing
@ 2017-08-01 11:25 Wei Liu
2017-08-01 14:09 ` Ian Jackson
0 siblings, 1 reply; 2+ messages in thread
From: Wei Liu @ 2017-08-01 11:25 UTC (permalink / raw)
To: Xen-devel; +Cc: Wei Liu, Ian Jackson
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
---
tools/libxc/xc_dom_core.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tools/libxc/xc_dom_core.c b/tools/libxc/xc_dom_core.c
index cf403432d2..b5f316a1dc 100644
--- a/tools/libxc/xc_dom_core.c
+++ b/tools/libxc/xc_dom_core.c
@@ -754,7 +754,8 @@ struct xc_dom_image *xc_dom_allocate(xc_interface *xch,
struct xc_dom_image *dom;
xc_dom_printf(xch, "%s: cmdline=\"%s\", features=\"%s\"",
- __FUNCTION__, cmdline, features);
+ __FUNCTION__, cmdline ? cmdline : "",
+ features ? features : "");
dom = malloc(sizeof(*dom));
if ( !dom )
goto err;
--
2.11.0
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] libxc: check pointer is not null before printing
2017-08-01 11:25 [PATCH] libxc: check pointer is not null before printing Wei Liu
@ 2017-08-01 14:09 ` Ian Jackson
0 siblings, 0 replies; 2+ messages in thread
From: Ian Jackson @ 2017-08-01 14:09 UTC (permalink / raw)
To: Wei Liu; +Cc: Xen-devel
Wei Liu writes ("[PATCH] libxc: check pointer is not null before printing"):
> Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-08-01 14:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-01 11:25 [PATCH] libxc: check pointer is not null before printing Wei Liu
2017-08-01 14:09 ` Ian Jackson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.