qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH V17 8/9] qemu-option: make qemu_opts_del accept


From: Dong Xu Wang
Subject: Re: [Qemu-devel] [PATCH V17 8/9] qemu-option: make qemu_opts_del accept opts being NULL
Date: Wed, 17 Jul 2013 17:50:48 +0800

Please ignore patch 8 and patch9, it won't work and I will re-send
them seperately.
Sorry for the inconvenience.

On Wed, Jul 17, 2013 at 5:29 PM, Dong Xu Wang
<address@hidden> wrote:
> Signed-off-by: Dong Xu Wang <address@hidden>
> ---
>  util/qemu-option.c | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/util/qemu-option.c b/util/qemu-option.c
> index 7545486..f4a0282 100644
> --- a/util/qemu-option.c
> +++ b/util/qemu-option.c
> @@ -656,6 +656,10 @@ void qemu_opts_del(QemuOpts *opts)
>  {
>      QemuOpt *opt;
>
> +    if (!opts) {
> +        return;
> +    }
> +
>      for (;;) {
>          opt = QTAILQ_FIRST(&opts->head);
>          if (opt == NULL)
> --
> 1.7.11.7
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]