texinfo-commits
[Top][All Lists]
Advanced

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

[5692] null check in info_get_or_remove_footnotes


From: Gavin D. Smith
Subject: [5692] null check in info_get_or_remove_footnotes
Date: Sun, 29 Jun 2014 22:28:17 +0000

Revision: 5692
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=5692
Author:   gavin
Date:     2014-06-29 22:28:16 +0000 (Sun, 29 Jun 2014)
Log Message:
-----------
null check in info_get_or_remove_footnotes

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

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2014-06-29 20:16:19 UTC (rev 5691)
+++ trunk/ChangeLog     2014-06-29 22:28:16 UTC (rev 5692)
@@ -1,5 +1,10 @@
 2014-06-29  Gavin Smith  <address@hidden>
 
+       * info/footnotes.c (info_get_or_remove_footnotes): Null check to avoid
+       crash when resizing window while displaying completions.
+
+2014-06-29  Gavin Smith  <address@hidden>
+
        * info/session.c (incremental_search): Call get_input_key instead of
        info_get_input_byte.
 

Modified: trunk/info/footnotes.c
===================================================================
--- trunk/info/footnotes.c      2014-06-29 20:16:19 UTC (rev 5691)
+++ trunk/info/footnotes.c      2014-06-29 22:28:16 UTC (rev 5692)
@@ -187,8 +187,9 @@
   if (fn_win == window)
     return FN_FOUND;
 
-  /* Don't display footnotes for the "*" node (entire contents of file). */
-  if (strcmp ("*", window->node->nodename))
+  /* Don't display footnotes for the "*" node (entire contents of file) or
+     for nodes without a name like completion windows. */
+  if (window->node->nodename && strcmp ("*", window->node->nodename))
     /* Try to find footnotes for this window's node. */
     new_footnotes = make_footnotes_node (window->node);
 




reply via email to

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