lynx-dev
[Top][All Lists]
Advanced

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

lynx-dev Crash due to uninitialized pointer


From: Sergey Svishchev
Subject: lynx-dev Crash due to uninitialized pointer
Date: Wed, 12 May 1999 13:24:00 +0400

G'day,

If -term switch is used, uninitialized pointer is passed to HTAlloc() and a
crash occurs there.

+++ src/LYCurses.c.orig Sun May  9 12:27:50 1999
--- src/LYCurses.c      Tue May 11 07:45:14 1999
@@ -1077,7 +1077,7 @@
 PUBLIC BOOLEAN setup ARGS1(
        char *,         terminal)
 {
-    char *term_putenv;
+    char *term_putenv = NULL;
     char *buffer = NULL;
     char *cp;
 #if defined(HAVE_SIZECHANGE) && !defined(USE_SLANG) && defined(NOTDEFINED)

-- 
Sergey Svishchev -- svs{at}ropnet{dot}ru

reply via email to

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