• R/O
  • SSH

vim: コミット

Mirror of the Vim source from https://github.com/vim/vim


コミットメタ情報

リビジョンc6b06a4a8f928b1868a3d48d95293730262a041e (tree)
日時2008-07-27 22:57:29
作者vimboss
コミッターvimboss

ログメッセージ

updated for version 7.2b-023

変更サマリ

差分

diff -r a285f0cd8a46 -r c6b06a4a8f92 src/eval.c
--- a/src/eval.c Sat Jul 26 14:05:07 2008 +0000
+++ b/src/eval.c Sun Jul 27 13:57:29 2008 +0000
@@ -1275,7 +1275,8 @@
12751275 if (dolist && tv.v_type == VAR_LIST)
12761276 {
12771277 ga_init2(&ga, (int)sizeof(char), 80);
1278- list_join(&ga, tv.vval.v_list, (char_u *)"\n", TRUE, 0);
1278+ if (tv.vval.v_list != NULL)
1279+ list_join(&ga, tv.vval.v_list, (char_u *)"\n", TRUE, 0);
12791280 ga_append(&ga, NUL);
12801281 retval = (char_u *)ga.ga_data;
12811282 }
@@ -1380,6 +1381,7 @@
13801381 /*
13811382 * Evaluate an expression to a list with suggestions.
13821383 * For the "expr:" part of 'spellsuggest'.
1384+ * Returns NULL when there is an error.
13831385 */
13841386 list_T *
13851387 eval_spell_expr(badword, expr)
@@ -1587,8 +1589,9 @@
15871589 # endif
15881590
15891591 /*
1590- * Call vimL function "func" and return the result as a list
1592+ * Call vimL function "func" and return the result as a List.
15911593 * Uses argv[argc] for the function arguments.
1594+ * Returns NULL when there is something wrong.
15921595 */
15931596 void *
15941597 call_func_retlist(func, argc, argv, safe)
@@ -5817,6 +5820,8 @@
58175820 {
58185821 listitem_T *item1, *item2;
58195822
5823+ if (l1 == NULL || l2 == NULL)
5824+ return FALSE;
58205825 if (l1 == l2)
58215826 return TRUE;
58225827 if (list_len(l1) != list_len(l2))
@@ -5855,6 +5860,8 @@
58555860 dictitem_T *item2;
58565861 int todo;
58575862
5863+ if (d1 == NULL || d2 == NULL)
5864+ return FALSE;
58585865 if (d1 == d2)
58595866 return TRUE;
58605867 if (dict_len(d1) != dict_len(d2))
@@ -6243,6 +6250,9 @@
62436250 {
62446251 list_T *l;
62456252
6253+ if (l1 == NULL || l2 == NULL)
6254+ return FAIL;
6255+
62466256 /* make a copy of the first list. */
62476257 l = list_copy(l1, FALSE, 0);
62486258 if (l == NULL)
diff -r a285f0cd8a46 -r c6b06a4a8f92 src/version.c
--- a/src/version.c Sat Jul 26 14:05:07 2008 +0000
+++ b/src/version.c Sun Jul 27 13:57:29 2008 +0000
@@ -677,6 +677,8 @@
677677 static int included_patches[] =
678678 { /* Add new patch number below this line */
679679 /**/
680+ 23,
681+/**/
680682 22,
681683 /**/
682684 21,
旧リポジトリブラウザで表示