73f57e7
To: vim-dev@vim.org
73f57e7
Subject: Patch 7.0.166
73f57e7
Fcc: outbox
73f57e7
From: Bram Moolenaar <Bram@moolenaar.net>
73f57e7
Mime-Version: 1.0
73f57e7
Content-Type: text/plain; charset=ISO-8859-1
73f57e7
Content-Transfer-Encoding: 8bit
73f57e7
------------
73f57e7
73f57e7
Patch 7.0.166
73f57e7
Problem:    Crash in cscope code when connection could not be opened.
73f57e7
	    (Kaya Bekiroglu)
73f57e7
Solution:   Check for the file descriptor to be NULL.
73f57e7
Files:	    src/if_cscope.c
73f57e7
73f57e7
73f57e7
*** ../vim-7.0.165/src/if_cscope.c	Mon Oct 30 22:31:30 2006
73f57e7
--- src/if_cscope.c	Tue Nov 14 22:04:30 2006
73f57e7
***************
73f57e7
*** 1008,1014 ****
73f57e7
      totmatches = 0;
73f57e7
      for (i = 0; i < CSCOPE_MAX_CONNECTIONS; i++)
73f57e7
      {
73f57e7
! 	if (csinfo[i].fname == NULL)
73f57e7
  	    continue;
73f57e7
  
73f57e7
  	/* send cmd to cscope */
73f57e7
--- 1008,1014 ----
73f57e7
      totmatches = 0;
73f57e7
      for (i = 0; i < CSCOPE_MAX_CONNECTIONS; i++)
73f57e7
      {
73f57e7
! 	if (csinfo[i].fname == NULL || csinfo[i].to_fp == NULL)
73f57e7
  	    continue;
73f57e7
  
73f57e7
  	/* send cmd to cscope */
73f57e7
*** ../vim-7.0.165/src/version.c	Tue Nov 21 11:29:56 2006
73f57e7
--- src/version.c	Tue Nov 21 11:42:13 2006
73f57e7
***************
73f57e7
*** 668,669 ****
73f57e7
--- 668,671 ----
73f57e7
  {   /* Add new patch number below this line */
73f57e7
+ /**/
73f57e7
+     166,
73f57e7
  /**/
73f57e7
73f57e7
-- 
73f57e7
The greatest lies of all time:
73f57e7
  (1) The check is in the mail.
73f57e7
  (2) We have a really challenging assignment for you.
73f57e7
  (3) I love you.
73f57e7
  (4) All bugs have been fixed.
73f57e7
  (5) This won't hurt a bit.
73f57e7
  (6) Honey, I just need to debug this program and be home in 5 minutes.
73f57e7
  (7) I have just sent you an e-mail about that.
73f57e7
  (8) Of course I'll respect you in the morning.
73f57e7
  (9) I'm from the government, and I'm here to help you.
73f57e7
73f57e7
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
73f57e7
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
73f57e7
\\\        download, build and distribute -- http://www.A-A-P.org        ///
73f57e7
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///