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 src: fix word spell typos 2020-07-09 10:01:41 +02:00
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 src/lxc: use #pragma once in headers 2019-06-19 17:12:30 +02:00
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_fuse: Move #include <fuse.h> 2022-03-07 14:01:48 +01:00
lxc_hostdev.c virDomainHostdevSubsys: Convert 'type' field to proper enum type 2023-09-15 10:35:04 +02:00
lxc_hostdev.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
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 lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
lxc_native.c src: Avoid needless checks before calling g_strdup() 2023-09-18 14:46:24 +02:00
lxc_native.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
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 lxc.conf: s/QEMU/LXC/ 2016-11-09 18:56:15 +01:00
meson.build meson: Add missing virt_install_dirs 2022-02-02 16:26:36 +01:00
test_libvirtd_lxc.aug.in build: use @CONFIG@ instead of ::CONFIG:: in augeas tests 2019-08-09 14:06:31 +01:00
virtlxcd.init.in configure: Provide OpenRC scripts for sub-daemons 2019-12-16 10:11:22 +01:00
virtlxcd.service.in src: fix max file limits in systemd services 2023-08-04 13:00:52 +01:00