texinfo-commits
[Top][All Lists]
Advanced

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

texinfo/info infodoc.c


From: Sergey Poznyakoff
Subject: texinfo/info infodoc.c
Date: Wed, 06 Apr 2011 21:17:06 +0000

CVSROOT:        /cvsroot/texinfo
Module name:    texinfo
Changes by:     Sergey Poznyakoff <gray>        11/04/06 21:17:06

Modified files:
        info           : infodoc.c 

Log message:
        (create_internal_info_help_node): Use string_to_node.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/texinfo/info/infodoc.c?cvsroot=texinfo&r1=1.26&r2=1.27

Patches:
Index: infodoc.c
===================================================================
RCS file: /cvsroot/texinfo/texinfo/info/infodoc.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -b -r1.26 -r1.27
--- infodoc.c   11 Jun 2008 09:55:42 -0000      1.26
+++ infodoc.c   6 Apr 2011 21:17:06 -0000       1.27
@@ -1,5 +1,5 @@
 /* infodoc.c -- functions which build documentation nodes.
-   $Id: infodoc.c,v 1.26 2008/06/11 09:55:42 gray Exp $
+   $Id: infodoc.c,v 1.27 2011/04/06 21:17:06 gray Exp $
 
    Copyright (C) 1993, 1997, 1998, 1999, 2001, 2002, 2003, 2004, 2006,
    2007, 2008 Free Software Foundation, Inc.
@@ -372,10 +372,7 @@
   else
     {
       /* We already had the right contents, so simply use them. */
-      node = build_message_node ("", 0, 0);
-      free (node->contents);
-      node->contents = contents;
-      node->nodelen = 1 + strlen (contents);
+      node = string_to_node (contents);
     }
 
   internal_info_help_node = node;



reply via email to

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