To: vim_dev@googlegroups.com Subject: Patch 9.0.1153 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 9.0.1153 (after 9.0.1152) Problem: Build error with some compilers. Solution: Clear pointer the right way. Files: src/vim9class.c *** ../vim-9.0.1152/src/vim9class.c 2023-01-06 18:42:16.430674097 +0000 --- src/vim9class.c 2023-01-06 18:56:38.599527917 +0000 *************** *** 606,612 **** goto cleanup; for (int i = 0; i < ga_impl.ga_len; ++i) cl->class_interfaces[i] = ((char_u **)ga_impl.ga_data)[i]; ! CLEAR_POINTER(ga_impl.ga_data); ga_impl.ga_len = 0; } --- 606,612 ---- goto cleanup; for (int i = 0; i < ga_impl.ga_len; ++i) cl->class_interfaces[i] = ((char_u **)ga_impl.ga_data)[i]; ! VIM_CLEAR(ga_impl.ga_data); ga_impl.ga_len = 0; } *** ../vim-9.0.1152/src/version.c 2023-01-06 18:42:16.434674109 +0000 --- src/version.c 2023-01-06 18:58:11.595494016 +0000 *************** *** 697,698 **** --- 697,700 ---- { /* Add new patch number below this line */ + /**/ + 1153, /**/ -- CART DRIVER: Bring out your dead! LARGE MAN: Here's one! CART DRIVER: Ninepence. BODY: I'm not dead! "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///