Re: [Qemu-devel] [PATCH 1/2] clean unnecessary code: don't check g_strdup arg for NULL

2013-05-09 Thread Michael Tokarev
09.05.2013 11:53, Dong Xu Wang wrote: > Signed-off-by: Dong Xu Wang Thank you Dong, (re)applied both patches to the trivial patch queue. /mjt

[Qemu-devel] [PATCH 1/2] clean unnecessary code: don't check g_strdup arg for NULL

2013-05-09 Thread Dong Xu Wang
Signed-off-by: Dong Xu Wang --- util/uri.c | 2 +- vl.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/util/uri.c b/util/uri.c index 4238729..e348c17 100644 --- a/util/uri.c +++ b/util/uri.c @@ -2162,7 +2162,7 @@ query_params_append (struct QueryParams *ps, }

[Qemu-devel] [PATCH 1/2] clean unnecessary code

2013-05-08 Thread Trival
Duplicates a string. If str is NULL it returns NULL, so can make code simple. Signed-off-by: Trival --- util/uri.c | 2 +- vl.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/util/uri.c b/util/uri.c index 4238729..e348c17 100644 --- a/util/uri.c +++ b/util/uri.c @@