mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
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>
This commit is contained in:
parent
2d40178a33
commit
7f303adc4f
2 changed files with 2 additions and 2 deletions
|
@ -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++;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue