texinfo-commits
[Top][All Lists]
Advanced

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

[7663] info_search_internal initialize some variables


From: gavinsmith0123
Subject: [7663] info_search_internal initialize some variables
Date: Fri, 3 Feb 2017 02:43:38 -0500 (EST)

Revision: 7663
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=7663
Author:   gavin
Date:     2017-02-03 02:43:37 -0500 (Fri, 03 Feb 2017)
Log Message:
-----------
info_search_internal initialize some variables

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

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2017-02-02 22:52:58 UTC (rev 7662)
+++ trunk/ChangeLog     2017-02-03 07:43:37 UTC (rev 7663)
@@ -1,3 +1,11 @@
+2017-02-03  Gavin Smith  <address@hidden>
+
+       * info/session.c (info_search_internal): Initialize some 
+       variables so they do not appear to be used uninitialized.  (They 
+       were not actually used uninitialized because if they were not 
+       initialized, the loop where they were used was broken out of 
+       beforehand.)  (Report from Hans-Bernhard Br\xF6ker.)
+
 2017-02-02  Gavin Smith  <address@hidden>
 
        * info/session.c (info_intuit_options_node): Do not free a 

Modified: trunk/info/session.c
===================================================================
--- trunk/info/session.c        2017-02-02 22:52:58 UTC (rev 7662)
+++ trunk/info/session.c        2017-02-03 07:43:37 UTC (rev 7663)
@@ -4102,7 +4102,7 @@
   long start;
   enum search_result result;
   int search_other_nodes = 1;
-  int number_of_tags, starting_tag, current_tag = -1;
+  int number_of_tags = -1, starting_tag = -1, current_tag = -1;
   NODE *node = window->node; /* Node to search in. */
   char *subfile_name = 0;
   TAG *tag;




reply via email to

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