提交 9b90644e 编写于 作者: J John Ferlan 提交者: Peter Krempa

virnetserver: Need to initialize 'sigdata'

It was possible to call VIR_FREE in error prior to initialization
上级 8164b0e8
...@@ -926,7 +926,7 @@ int virNetServerAddSignalHandler(virNetServerPtr srv, ...@@ -926,7 +926,7 @@ int virNetServerAddSignalHandler(virNetServerPtr srv,
virNetServerSignalFunc func, virNetServerSignalFunc func,
void *opaque) void *opaque)
{ {
virNetServerSignalPtr sigdata; virNetServerSignalPtr sigdata = NULL;
struct sigaction sig_action; struct sigaction sig_action;
virObjectLock(srv); virObjectLock(srv);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册