lynx-dev
[Top][All Lists]
Advanced

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

lynx-dev [patch][dev17] Two sparse initializers


From: John Bley
Subject: lynx-dev [patch][dev17] Two sparse initializers
Date: Wed, 17 Feb 1999 23:23:51 -0500 (EST)

Two sparse initializers found (static initialization of a struct done 
without filling out all fields).  I supplied "sane" defaults (NULL, 0, 
FALSE), perhaps more appropriate values exist.

-- 
John Bley - address@hidden
Duke '99 - English/Computer Science
  Since English is a mess, it maps well onto the problem space,
  which is also a mess, which we call reality.     - Larry Wall

diff -Burp lynx2-8-2/src/LYKeymap.c lynx2-8-2-patched/src/LYKeymap.c
--- lynx2-8-2/src/LYKeymap.c    Wed Feb 17 09:29:33 1999
+++ lynx2-8-2-patched/src/LYKeymap.c    Wed Feb 17 22:42:20 1999
@@ -31,7 +31,8 @@ PUBLIC char * LYKbLayoutNames[]={
 };
 #endif
 
-PRIVATE CONST DocAddress keymap_anchor = {"LYNXKEYMAP", NULL, NULL};
+PRIVATE CONST DocAddress keymap_anchor = {"LYNXKEYMAP", NULL, NULL, 
+       NULL, FALSE, FALSE};
 
 struct _HTStream
 {
diff -Burp lynx2-8-2/src/LYMain.c lynx2-8-2-patched/src/LYMain.c
--- lynx2-8-2/src/LYMain.c      Wed Feb 17 09:29:33 1999
+++ lynx2-8-2-patched/src/LYMain.c      Wed Feb 17 23:02:01 1999
@@ -2969,7 +2969,7 @@ treated '>' as a co-terminator for doubl
       "width",         NEED_FUNCTION_ARG,      width_fun,
       "=NUMBER\nscreen width for formatting of dumps (default is 80)"
    ),
-   {NULL}
+   {NULL, 0, 0, NULL}
 };
 
 static void print_help_strings ARGS3(

reply via email to

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