Re: [PATCH 09/12] storage_conf: Use NULLSTR instead

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/22/2013 02:05 PM, Osier Yang wrote:
> ---
>  src/conf/storage_conf.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/conf/storage_conf.c b/src/conf/storage_conf.c
> index 4c08cea..1f376ef 100644
> --- a/src/conf/storage_conf.c
> +++ b/src/conf/storage_conf.c
> @@ -1485,7 +1485,7 @@ virStorageVolDefFormat(virStoragePoolDefPtr pool,
>  
>      virBufferAddLit(&buf, "<volume>\n");
>      virBufferAsprintf(&buf,"  <name>%s</name>\n", def->name);
> -    virBufferAsprintf(&buf,"  <key>%s</key>\n", def->key ? def->key : "(null)");
> +    virBufferAsprintf(&buf,"  <key>%s</key>\n", NULLSTR(def->key));
>      virBufferAddLit(&buf, "  <source>\n");
>  
>      if (def->source.nextent) {
> 

ACK

Jan

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]