virterror: Make SetError work if no previous error was set
virGetLastError returns NULL if no error has been set, not on allocation error like virSetError assumed. Use virLastErrorObject instead. This fixes virSetError when no error is currently stored.
Showing
想要评论请 注册 或 登录