[vim/f18] - patchlevel 689

Karsten Hopp karsten at fedoraproject.org
Mon Nov 12 14:32:05 UTC 2012


commit d2a9d3847a0cd623a8a0d37cf2f01cd2e182bc10
Author: Karsten Hopp <karsten at redhat.com>
Date:   Mon Nov 12 15:31:10 2012 +0100

    - patchlevel 689

 7.3.689 |   72 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 72 insertions(+), 0 deletions(-)
---
diff --git a/7.3.689 b/7.3.689
new file mode 100644
index 0000000..ae8e60d
--- /dev/null
+++ b/7.3.689
@@ -0,0 +1,72 @@
+To: vim_dev at googlegroups.com
+Subject: Patch 7.3.689
+Fcc: outbox
+From: Bram Moolenaar <Bram at moolenaar.net>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 7.3.689
+Problem:    MzScheme and Lua may use a NULL string.
+Solution:   Use an empty string instead of NULL. (Yukihiro Nakadaira)
+Files:      src/if_lua.c, src/if_mzsch.c
+
+
+*** ../vim-7.3.688/src/if_lua.c	2012-06-29 12:54:32.000000000 +0200
+--- src/if_lua.c	2012-10-14 03:33:32.000000000 +0200
+***************
+*** 464,470 ****
+      switch (tv->v_type)
+      {
+  	case VAR_STRING:
+! 	    lua_pushstring(L, (char *) tv->vval.v_string);
+  	    break;
+  	case VAR_NUMBER:
+  	    lua_pushinteger(L, (int) tv->vval.v_number);
+--- 464,471 ----
+      switch (tv->v_type)
+      {
+  	case VAR_STRING:
+! 	    lua_pushstring(L, tv->vval.v_string == NULL
+! 					    ? "" : (char *)tv->vval.v_string);
+  	    break;
+  	case VAR_NUMBER:
+  	    lua_pushinteger(L, (int) tv->vval.v_number);
+*** ../vim-7.3.688/src/if_mzsch.c	2012-02-12 01:55:50.000000000 +0100
+--- src/if_mzsch.c	2012-10-14 03:33:32.000000000 +0200
+***************
+*** 2649,2655 ****
+  	new_value = FALSE;
+      else if (vim_value->v_type == VAR_STRING)
+      {
+! 	result = scheme_make_string((char *)vim_value->vval.v_string);
+  	MZ_GC_CHECK();
+      }
+      else if (vim_value->v_type == VAR_NUMBER)
+--- 2649,2656 ----
+  	new_value = FALSE;
+      else if (vim_value->v_type == VAR_STRING)
+      {
+! 	result = scheme_make_string(vim_value->vval.v_string == NULL
+! 				    ? "" : (char *)vim_value->vval.v_string);
+  	MZ_GC_CHECK();
+      }
+      else if (vim_value->v_type == VAR_NUMBER)
+*** ../vim-7.3.688/src/version.c	2012-10-14 03:22:49.000000000 +0200
+--- src/version.c	2012-10-14 03:33:49.000000000 +0200
+***************
+*** 721,722 ****
+--- 721,724 ----
+  {   /* Add new patch number below this line */
++ /**/
++     689,
+  /**/
+
+-- 
+Computers make very fast, very accurate, mistakes.
+
+ /// Bram Moolenaar -- Bram at Moolenaar.net -- http://www.Moolenaar.net   \\\
+///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
+\\\  an exciting new programming language -- http://www.Zimbu.org        ///
+ \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///


More information about the scm-commits mailing list