texinfo-commits
[Top][All Lists]
Advanced

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

texinfo/info m-x.c,1.3,1.4


From: karl
Subject: texinfo/info m-x.c,1.3,1.4
Date: Sat, 20 Mar 2004 23:15:59 +0100

Update of /cvsroot/texinfo/texinfo/info
In directory sheep:/tmp/cvs-serv4201

Modified Files:
        m-x.c 
Log Message:
(info_execute_command): don't dereference
InfoFunction(command) as a function call if it's
NULL.  Report from Nelson, pgcc-5.1-3 complains.


Index: m-x.c
===================================================================
RCS file: /cvsroot/texinfo/texinfo/info/m-x.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** m-x.c       14 Mar 2004 00:57:29 -0000      1.3
--- m-x.c       20 Mar 2004 22:15:57 -0000      1.4
***************
*** 19,23 ****
     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  
!    Written by Brian Fox (address@hidden). */
  
  #include "info.h"
--- 19,23 ----
     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  
!    Originally written by Brian Fox (address@hidden). */
  
  #include "info.h"
***************
*** 149,153 ****
        return;
  
!     (*InfoFunction(command)) (active_window, count, 0);
    }
  }
--- 149,156 ----
        return;
  
!     if (InfoFunction(command))
!       (*InfoFunction(command)) (active_window, count, 0);
!     else
!       info_error ((char *) _("Undefined command: %s"), line, NULL);
    }
  }



reply via email to

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