[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * info/infomap.c (locate_init_file): initialize f
From: |
Patrice Dumas |
Subject: |
branch master updated: * info/infomap.c (locate_init_file): initialize filename such that it is not used uninitialized if homedir is not set. |
Date: |
Sun, 06 Oct 2024 15:02:45 -0400 |
This is an automated email from the git hooks/post-receive script.
pertusus pushed a commit to branch master
in repository texinfo.
The following commit(s) were added to refs/heads/master by this push:
new bdcca2eb25 * info/infomap.c (locate_init_file): initialize filename
such that it is not used uninitialized if homedir is not set.
bdcca2eb25 is described below
commit bdcca2eb25658ba45b299821a4e5df7eb19cb93d
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sun Oct 6 21:02:51 2024 +0200
* info/infomap.c (locate_init_file): initialize filename such that it
is not used uninitialized if homedir is not set.
---
ChangeLog | 5 +++++
info/infomap.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 393dacb407..b00bfe3c29 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-10-06 Patrice Dumas <pertusus@free.fr>
+
+ * info/infomap.c (locate_init_file): initialize filename such that it
+ is not used uninitialized if homedir is not set.
+
2024-10-06 Patrice Dumas <pertusus@free.fr>
* configure.ac (additional-checks), tp/Texinfo/XS/configure.ac
diff --git a/info/infomap.c b/info/infomap.c
index 68d4b830d7..16e2e5ee60 100644
--- a/info/infomap.c
+++ b/info/infomap.c
@@ -570,7 +570,7 @@ locate_init_file (void)
{
struct stat finfo;
char *xdg_config_home, *homedir;
- char *filename;
+ char *filename = 0;
/* First, check for init file under XDG_CONFIG_HOME. */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * info/infomap.c (locate_init_file): initialize filename such that it is not used uninitialized if homedir is not set.,
Patrice Dumas <=