diff options
| author | Dong Xu Wang | 2013-05-09 09:53:49 +0200 |
|---|---|---|
| committer | Michael Tokarev | 2013-05-12 11:25:55 +0200 |
| commit | 7f303adc4f0aaa71b196d9f983150f3ec3367b46 (patch) | |
| tree | 7171596d1007df430c2b980888df3be167c90da0 /util/uri.c | |
| parent | docs: mention AddressSpaces in docs/memory.txt (diff) | |
| download | qemu-7f303adc4f0aaa71b196d9f983150f3ec3367b46.tar.gz qemu-7f303adc4f0aaa71b196d9f983150f3ec3367b46.tar.xz qemu-7f303adc4f0aaa71b196d9f983150f3ec3367b46.zip | |
clean unnecessary code: don't check g_strdup arg for NULL
Signed-off-by: Dong Xu Wang <wdongxu@linux.vnet.ibm.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'util/uri.c')
| -rw-r--r-- | util/uri.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/uri.c b/util/uri.c index 4238729b83..e348c1768c 100644 --- a/util/uri.c +++ b/util/uri.c @@ -2162,7 +2162,7 @@ query_params_append (struct QueryParams *ps, } ps->p[ps->n].name = g_strdup(name); - ps->p[ps->n].value = value ? g_strdup(value) : NULL; + ps->p[ps->n].value = g_strdup(value); ps->p[ps->n].ignore = 0; ps->n++; |
