yangdongsheng
2da3bc646e
util: fix the VIR_STRDUP when src is NULL
...
When src is NULL, VIR_STRDUP will return 0 directly.
This patch will set dest to NULL before VIR_STRDUP return.
Example:
[root@yds-pc libvirt]# virsh
Welcome to virsh, the virtualization interactive terminal.
Type: 'help' for help with commands
'quit' to quit
virsh # connect
error: Failed to connect to the hypervisor
error: internal error Unable to parse URI �N�*
Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
2013-05-28 05:57:01 -06:00
..
2013-05-02 16:56:55 +02:00
2013-05-07 13:21:31 -06:00
2013-05-07 13:21:31 -06:00
2013-05-21 23:41:45 +08:00
2013-05-02 16:56:55 +02:00
2013-05-24 10:10:03 +02:00
2013-05-24 10:10:03 +02:00
2013-05-24 10:10:03 +02:00
2013-05-24 12:11:24 +02:00
2013-04-16 07:17:00 -04:00
2013-04-15 17:35:32 +01:00
2013-05-24 10:10:03 +02:00
2013-05-02 16:56:55 +02:00
2013-05-24 10:10:03 +02:00
2013-05-24 10:10:03 +02:00
2013-05-24 10:10:03 +02:00
2013-05-24 10:10:03 +02:00
2013-05-24 10:10:03 +02:00
2013-05-21 23:41:45 +08:00
2013-05-24 10:10:03 +02:00
2013-05-13 13:15:19 +01:00
2013-05-24 10:10:03 +02:00
2013-05-10 13:09:30 -04:00
2013-05-02 16:56:55 +02:00
2013-05-24 10:10:03 +02:00
2013-05-08 10:47:45 +01:00
2013-05-24 10:10:03 +02:00
2013-05-24 10:10:03 +02:00
2013-05-24 10:10:03 +02:00
2013-05-13 15:15:54 -06:00
2013-04-17 15:50:53 +08:00
2013-05-24 10:10:03 +02:00
2013-05-24 10:10:03 +02:00
2013-05-24 10:10:03 +02:00
2013-05-13 16:14:40 -04:00
2013-05-14 18:27:51 +02:00
2013-05-02 16:56:55 +02:00
2013-05-02 16:56:55 +02:00
2013-05-24 10:10:03 +02:00
2013-05-02 16:56:55 +02:00
2013-05-02 16:56:55 +02:00
2013-05-24 10:10:03 +02:00
2013-05-22 17:24:27 +02:00
2013-05-10 13:09:30 -04:00
2013-05-24 10:10:03 +02:00
2013-05-13 17:32:43 +01:00
2013-05-08 10:47:47 +01:00
2013-05-08 10:47:47 +01:00
2013-04-24 23:23:31 +08:00
2013-05-24 10:10:03 +02:00
2013-05-24 10:10:03 +02:00
2013-05-02 02:09:29 -04:00
2013-05-02 16:56:55 +02:00
2013-05-21 23:41:45 +08:00
2013-05-21 23:41:45 +08:00
2013-05-08 10:47:45 +01:00
2013-05-02 16:56:55 +02:00
2013-05-24 10:10:03 +02:00
2013-05-16 23:50:00 +08:00
2013-05-24 17:00:39 +02:00
2013-05-24 10:10:03 +02:00
2013-04-22 14:10:53 -04:00
2013-05-02 16:56:55 +02:00
2013-05-24 10:10:03 +02:00
2013-04-25 14:47:01 -06:00
2013-05-28 05:57:01 -06:00
2013-05-24 16:59:30 +02:00
2013-05-24 10:10:03 +02:00
2013-05-03 06:30:22 -06:00
2013-05-03 06:30:22 -06:00
2013-05-21 23:41:45 +08:00
2013-05-02 16:56:55 +02:00
2013-05-02 16:56:55 +02:00
2013-05-24 10:10:03 +02:00
2013-05-24 10:10:03 +02:00
2013-05-10 13:09:30 -04:00
2013-05-24 10:10:03 +02:00
2013-05-13 17:17:26 +08:00
2013-05-24 10:10:03 +02:00