swtpm/src
Stefan Berger d059f40c61 swtpm/swtpm_setup: Initialize variables with NULL for RPM build
When building an rpm with swtpm.spec on Fedora 40 this type of errors
appear on variables that normally do not need to be initialized.

In file included from /usr/include/glib-2.0/glib.h:117,
                 from profile.c:14:
In function ‘g_autoptr_cleanup_generic_gfree’,
    inlined from ‘profile_gather_local’ at profile.c:307:23,
    inlined from ‘profile_printall’ at profile.c:366:10:
/usr/include/glib-2.0/glib/glib-autocleanups.h:32:3: error: ‘dir’ may be used uninitialized [-Werror=maybe-uninitialized]
   32 |   g_free (*pp);
      |   ^~~~~~~~~~~~
profile.c: In function ‘profile_printall’:
profile.c:307:23: note: ‘dir’ was declared here
  307 |     g_autofree gchar *dir;
      |                       ^~~

Include string.h since in some older build environments strcmp and strlen
do not have prototypes otherwise.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2024-11-15 07:52:59 -05:00
..
selinux selinux: Change write to append for appending to log 2024-10-01 09:57:34 -04:00
swtpm swtpm/swtpm_setup: Initialize variables with NULL for RPM build 2024-11-15 07:52:59 -05:00
swtpm_bios swtpm_bios: Rename parameter from optarg to opt_arg (OS X,Wshadow) 2024-10-13 19:46:15 -04:00
swtpm_cert swtpm_cert: Move error message about importing signing key into else branch 2024-11-13 13:52:07 -05:00
swtpm_ioctl swtpm_ioctl: Rename parameter from optarg to opt_arg (OS X,Wshadow) 2024-10-13 19:46:15 -04:00
swtpm_localca swtpm: Implement concat_varrays and fix casts in concat_array calls 2024-09-23 09:20:08 -04:00
swtpm_setup swtpm/swtpm_setup: Initialize variables with NULL for RPM build 2024-11-15 07:52:59 -05:00
utils swtpm_setup: Handle case when returned profile Name is null 2024-11-13 16:47:17 -05:00
Makefile.am Move swtpm_localca sources from samples/ to src/ 2021-07-25 08:52:13 -04:00