texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]


From: Patrice Dumas
Date: Fri, 11 Oct 2024 15:55:58 -0400 (EDT)

branch: master
commit 693115c6762064c52a05b07bd71286df8a1575c2
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Fri Oct 11 21:55:47 2024 +0200

    * info/nodes.c (info_get_node_with_defaults): remove filename_in in
    condition inside, as it can only be setbecause of condition outside.
    Do not initialize filename and nodename, they are always set.
---
 ChangeLog    | 6 ++++++
 info/nodes.c | 6 ++----
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 327297c515..b6c495bb83 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-11-10  Patrice Dumas  <pertusus@free.fr>
+
+       * info/nodes.c (info_get_node_with_defaults): remove filename_in in
+       condition inside, as it can only be setbecause of condition outside.
+       Do not initialize filename and nodename, they are always set.
+
 2024-11-10  Patrice Dumas  <pertusus@free.fr>
 
        * info/footnotes.c (make_footnotes_node): use fn_node directly to
diff --git a/info/nodes.c b/info/nodes.c
index c00d3ed002..28d0e477f0 100644
--- a/info/nodes.c
+++ b/info/nodes.c
@@ -953,17 +953,15 @@ info_get_node_with_defaults (char *filename_in, char 
*nodename_in,
 {
   NODE *node = 0;
   FILE_BUFFER *file_buffer = NULL;
-  char *filename = 0, *nodename = 0;
+  char *filename, *nodename;
 
   info_recent_file_error = NULL;
 
-  filename = filename_in;
   if (filename_in)
     {
       filename = xstrdup (filename_in);
       if (follow_strategy == FOLLOW_REMAIN
-          && defaults && defaults->fullpath
-          && filename_in)
+          && defaults && defaults->fullpath)
         {
           /* Find the directory in the filename for defaults, and look in
              that directory first. */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]