texinfo-commits
[Top][All Lists]
Advanced

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

[7664] info_execute_command remove unused error message


From: gavinsmith0123
Subject: [7664] info_execute_command remove unused error message
Date: Fri, 3 Feb 2017 18:31:30 -0500 (EST)

Revision: 7664
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=7664
Author:   gavin
Date:     2017-02-03 18:31:30 -0500 (Fri, 03 Feb 2017)
Log Message:
-----------
info_execute_command remove unused error message

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

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2017-02-03 07:43:37 UTC (rev 7663)
+++ trunk/ChangeLog     2017-02-03 23:31:30 UTC (rev 7664)
@@ -1,5 +1,12 @@
 2017-02-03  Gavin Smith  <address@hidden>
 
+       * info/m-x.c (info_execute_command): Remove code printing an 
+       error message that would use a freed pointer.  (It is not 
+       actually executed because info_read_completing_in_echo_area will 
+       not return anything outside the list of permissible completions.)
+
+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 

Modified: trunk/info/m-x.c
===================================================================
--- trunk/info/m-x.c    2017-02-03 07:43:37 UTC (rev 7663)
+++ trunk/info/m-x.c    2017-02-03 23:31:30 UTC (rev 7664)
@@ -2,7 +2,7 @@
    $Id$
 
    Copyright 1993, 1997, 1998, 2001, 2002, 2004, 2007, 2008, 2011, 2013,
-   2014 Free Software Foundation, Inc.
+   2014, 2017 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -140,13 +140,8 @@
     command = named_function (line);
     free (line);
 
-    if (!command)
-      return;
-
-    if (command->func)
+    if (command && command->func)
       (*command->func) (active_window, count, 0);
-    else
-      info_error (_("Undefined command: %s"), line);
   }
 }
 




reply via email to

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