Re: [PATCH 02/13] oslib: do not call g_strdup from qemu_get_exec_dir

2020-09-02 Thread Thomas Huth
On 01/09/2020 08.20, Paolo Bonzini wrote: > Just return the directory without requiring the caller to free it. > This also removes a bogus check for NULL in os_find_datadir and > module_load_one; g_strdup of a static variable cannot return NULL. > > Signed-off-by: Paolo Bonzini > --- > include/q

[PATCH 02/13] oslib: do not call g_strdup from qemu_get_exec_dir

2020-08-31 Thread Paolo Bonzini
Just return the directory without requiring the caller to free it. This also removes a bogus check for NULL in os_find_datadir and module_load_one; g_strdup of a static variable cannot return NULL. Signed-off-by: Paolo Bonzini --- include/qemu/osdep.h| 8 ++-- os-posix.c |