diff options
author | Martin Matuska <martin@matuska.de> | 2022-12-08 15:08:14 +0100 |
---|---|---|
committer | Martin Matuska <martin@matuska.de> | 2022-12-08 15:08:14 +0100 |
commit | 186116ce9a312929656fb977e57ec49aaee099c2 (patch) | |
tree | 1fb61daa15e69f8976b1da02d25329713868fc90 /libarchive/archive_write_disk_posix.c | |
parent | 0d7cc9a041461ba03de90476db2c9bcb0a391112 (diff) | |
download | libarchive-186116ce9a312929656fb977e57ec49aaee099c2.tar.gz |
various: fix unitialized local variables
Reported by: GitHub CodeQL
Code scanning alerts: 214, 215, 216
Diffstat (limited to 'libarchive/archive_write_disk_posix.c')
-rw-r--r-- | libarchive/archive_write_disk_posix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libarchive/archive_write_disk_posix.c b/libarchive/archive_write_disk_posix.c index 4793878b..09a5eef0 100644 --- a/libarchive/archive_write_disk_posix.c +++ b/libarchive/archive_write_disk_posix.c @@ -2795,7 +2795,7 @@ check_symlinks_fsobj(char *path, int *a_eno, struct archive_string *a_estr, char *tail; char *head; int last; - char c; + char c = '\0'; int r; struct stat st; int chdir_fd; |