[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[5610] avoid loading too many nodes for -O
From: |
Gavin D. Smith |
Subject: |
[5610] avoid loading too many nodes for -O |
Date: |
Tue, 27 May 2014 13:12:01 +0000 |
Revision: 5610
http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=5610
Author: gavin
Date: 2014-05-27 13:12:00 +0000 (Tue, 27 May 2014)
Log Message:
-----------
avoid loading too many nodes for -O
Modified Paths:
--------------
trunk/ChangeLog
trunk/info/info.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2014-05-27 12:49:23 UTC (rev 5609)
+++ trunk/ChangeLog 2014-05-27 13:12:00 UTC (rev 5610)
@@ -1,5 +1,10 @@
-2014-05-25 Gavin Smith <address@hidden>
+2014-05-27 Gavin Smith <address@hidden>
+ * info/info.c (add_initial_nodes) <--show-options>: Avoid loading
+ extra node if we came here from a dir entry.
+
+2014-05-27 Gavin Smith <address@hidden>
+
* info/info-utils.c (info_get_menu_entry_by_label): New argument
for sloppy menu reading.
Modified: trunk/info/info.c
===================================================================
--- trunk/info/info.c 2014-05-27 12:49:23 UTC (rev 5609)
+++ trunk/info/info.c 2014-05-27 13:12:00 UTC (rev 5610)
@@ -321,6 +321,13 @@
char **p = argv;
char *program;
+ if (ref_index > 0)
+ {
+ /* Discard a dir entry that was found. */
+ free (ref_list[0]);
+ ref_index = 0;
+ }
+
/* If they said "info --show-options foo bar baz",
the last of the arguments is the program whose
options they want to see. */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [5610] avoid loading too many nodes for -O,
Gavin D. Smith <=