libvirt/src/lxc
Michal Privoznik 732c5f4270 src: Avoid needless checks before calling g_strdup()
There are few places where the following pattern occurs:

  if (var)
      other = g_strdup(var);

where @other wasn't initialized before g_strdup(). Checking for
var != NULL is useless in this case, as that's exactly what
g_strdup() does (in which case it returns NULL).

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2023-09-18 14:46:24 +02:00
..
libvirtd_lxc.aug
lxc_cgroup.c virDomainHostdevCaps: Convert 'type' field to proper enum type 2023-09-15 10:35:01 +02:00
lxc_cgroup.h lxc: Remove unused includes 2022-06-16 06:43:58 +02:00
lxc_conf.c lxc: Use new connection close callbacks API 2023-01-06 15:30:09 +01:00
lxc_conf.h lxc: Use new connection close callbacks API 2023-01-06 15:30:09 +01:00
lxc_container.c lxc_container: Check retval of capng_get_caps_process() 2023-09-11 12:34:03 +02:00
lxc_container.h lxc: Remove unused includes 2022-06-16 06:43:58 +02:00
lxc_controller.c virDomainHostdevSubsys: Convert 'type' field to proper enum type 2023-09-15 10:35:04 +02:00
lxc_domain.c lib: use struct zero initializer instead of memset 2023-08-03 16:41:19 +02:00
lxc_domain.h LXC: use virDomainObjEndJob() 2022-09-07 12:14:34 +02:00
lxc_driver.c virDomainHostdevSubsys: Convert 'type' field to proper enum type 2023-09-15 10:35:04 +02:00
lxc_driver.h
lxc_fuse.c Revert "lxc_fuse: Tell FUSE that /proc/meminfo is nonseekable" 2023-06-29 15:21:00 +02:00
lxc_fuse.h
lxc_hostdev.c virDomainHostdevSubsys: Convert 'type' field to proper enum type 2023-09-15 10:35:04 +02:00
lxc_hostdev.h
lxc_monitor_protocol.x lxc: fix XDR protocol compliance 2023-01-17 12:33:54 -05:00
lxc_monitor.c lxc: Remove unused includes 2022-06-16 06:43:58 +02:00
lxc_monitor.h
lxc_native.c src: Avoid needless checks before calling g_strdup() 2023-09-18 14:46:24 +02:00
lxc_native.h
lxc_process.c lxc: Move error messages onto a single line 2023-09-04 09:35:36 +02:00
lxc_process.h virLXCProcessStart: Pass in virConnect object only when registering autodestroy 2022-07-22 11:11:42 +02:00
lxc.conf
meson.build
test_libvirtd_lxc.aug.in
virtlxcd.init.in
virtlxcd.service.in src: fix max file limits in systemd services 2023-08-04 13:00:52 +01:00