texinfo-commits
[Top][All Lists]
Advanced

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

[5639] get_filename_and_nodename - null check


From: Gavin D. Smith
Subject: [5639] get_filename_and_nodename - null check
Date: Thu, 05 Jun 2014 00:05:52 +0000

Revision: 5639
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=5639
Author:   gavin
Date:     2014-06-05 00:05:51 +0000 (Thu, 05 Jun 2014)
Log Message:
-----------
get_filename_and_nodename - null check

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

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2014-06-04 23:55:29 UTC (rev 5638)
+++ trunk/ChangeLog     2014-06-05 00:05:51 UTC (rev 5639)
@@ -1,5 +1,10 @@
 2014-06-05  Gavin Smith  <address@hidden>
 
+       * info/nodes.c: Check if return value of file_buffer_of_window
+       is null.
+
+2014-06-05  Gavin Smith  <address@hidden>
+
        * info/session.c (free_history_node): New function.  Free references
        for internal nodes.
        (forget_node, forget_window_and_nodes): Call free_history_node.

Modified: trunk/info/nodes.c
===================================================================
--- trunk/info/nodes.c  2014-06-04 23:55:29 UTC (rev 5638)
+++ trunk/info/nodes.c  2014-06-05 00:05:51 UTC (rev 5639)
@@ -1032,7 +1032,10 @@
           if (!*filename)
             {
               fb = file_buffer_of_window (window);
-              *filename = fb->fullpath;
+              if (fb)
+                *filename = fb->fullpath;
+              else
+                *filename = window->node->filename;
             }
         }
       else




reply via email to

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