diff src/vim9script.c @ 19193:9f98957582d6 v8.2.0155

patch 8.2.0155: warnings from MinGW compiler; tests fail without +float Commit: https://github.com/vim/vim/commit/a5d5953d59730d9bf9c00a727c4aeb56f6ffc944 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 26 21:42:03 2020 +0100 patch 8.2.0155: warnings from MinGW compiler; tests fail without +float Problem: Warnings from MinGW compiler. (John Marriott) Json test fails when building without +float feature. Solution: Init variables. Fix Json parsing. Skip a few tests that require the +float feature.
author Bram Moolenaar <Bram@vim.org>
date Sun, 26 Jan 2020 21:45:03 +0100
parents 133ef7ba4e4e
children 9b97da610cab
line wrap: on
line diff
--- a/src/vim9script.c
+++ b/src/vim9script.c
@@ -323,6 +323,7 @@ handle_import(char_u *arg_start, garray_
 		    *arg = cc;
 		    return NULL;
 		}
+		ufunc = NULL;
 	    }
 	    else
 	    {
@@ -355,6 +356,7 @@ handle_import(char_u *arg_start, garray_
 		    *arg = cc;
 		    return NULL;
 		}
+		sv = NULL;
 	    }
 
 	    imported = new_imported(gap != NULL ? gap