lynx-dev
[Top][All Lists]
Advanced

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

LYNX-DEV lynx2.7 BUG REPORT: DIRED null pointer problem


From: Glenn Nielsen
Subject: LYNX-DEV lynx2.7 BUG REPORT: DIRED null pointer problem
Date: Thu, 20 Mar 1997 15:25:26 -0600

LYNX2.7 running on a sparc with solaris 2.5

   There appear to be a number of problems with null pointers
when using DIRED in an empty directory.  The function dired_options()
in LYLocal.c will pass a null pointer for path_url to render_item()
which does no checks for null pointers when you try to use F)ull menu
for DIRED in an empty directory.  I fixed this by applying this patch:

****************************************************************
*** lynx2-7/src/LYLocal.c       Thu Feb  6 16:33:10 1997
--- slynx2-7/src/LYLocal.c      Thu Mar 20 15:11:32 1997 
***************
*** 1583,1589 ****
          *cp = '.';
         }
  #endif /* NOTDEFINED */
!     } else path[0] = '\0';

    /*escaped = (char *) HTEscape(path,(unsigned char) 4); path_url
instead- k
w*/
      nothing_tagged = (HTList_isEmpty(tagged));
--- 1582,1591 ----
          *cp = '.';
         }
  #endif /* NOTDEFINED */
!     } else  {
!        path[0] = '\0';
!        StrAllocCopy(path_url,path);
!     }

    /*escaped = (char *) HTEscape(path,(unsigned char) 4); path_url
instead- k
w*/
      nothing_tagged = (HTList_isEmpty(tagged));  
****************************************************************

But even with this patch there continue to be other problems
when trying to create a new file in an empty directory, then
remove it.  Lynx doesn't update its internal links for the new file,
so unless you go back up to the parent directory you can't remove the
new file.  And while trying to do something with this new empty file
I was able to get lynx to crash several more times.  Although
these instances haven't been easily repeatable.  If I have time I'll
try to track down these other problems and forward a patch to you.

Thanks,


Glenn

----------------------------------------------------------------------
Glenn Nielsen             address@hidden | /* Spelin donut madder    |
MOREnet System Programming               |  * if iz ina coment.      |
Missouri Research and Education Network  |  */                       |
----------------------------------------------------------------------
;
; To UNSUBSCRIBE:  Send a mail message to address@hidden
;                  with "unsubscribe lynx-dev" (without the
;                  quotation marks) on a line by itself.
;

reply via email to

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