texinfo-commits
[Top][All Lists]
Advanced

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

[7661] add_initial_nodes initialize a variable


From: gavinsmith0123
Subject: [7661] add_initial_nodes initialize a variable
Date: Thu, 2 Feb 2017 17:29:14 -0500 (EST)

Revision: 7661
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=7661
Author:   gavin
Date:     2017-02-02 17:29:14 -0500 (Thu, 02 Feb 2017)
Log Message:
-----------
add_initial_nodes initialize a variable

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/info/info.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2017-02-02 22:25:36 UTC (rev 7660)
+++ trunk/ChangeLog     2017-02-02 22:29:14 UTC (rev 7661)
@@ -1,5 +1,10 @@
 2017-02-02  Gavin Smith  <address@hidden>
 
+       * info/info.c (add_initial_nodes): Avoid a condition on an 
+       uninitialized value.  (Report from Hans-Bernhard Br\xF6ker.)
+
+2017-02-02  Gavin Smith  <address@hidden>
+
        * info/window.c (window_change_window_height): Simplify some 
        conditions to avoid appearing to possibly dereference a pointer
        after it has been checked for being null.

Modified: trunk/info/info.c
===================================================================
--- trunk/info/info.c   2017-02-02 22:25:36 UTC (rev 7660)
+++ trunk/info/info.c   2017-02-02 22:29:14 UTC (rev 7661)
@@ -432,7 +432,7 @@
 
   if (goto_invocation_p)
     {
-      NODE *top_node;
+      NODE *top_node = 0;
       REFERENCE *invoc_ref = 0;
 
       char *program;




reply via email to

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