| To: vim_dev@googlegroups.com |
| Subject: Patch 7.3.929 |
| Fcc: outbox |
| From: Bram Moolenaar <Bram@moolenaar.net> |
| Mime-Version: 1.0 |
| Content-Type: text/plain; charset=UTF-8 |
| Content-Transfer-Encoding: 8bit |
| ------------ |
| |
| Patch 7.3.929 (after 7.3.924) |
| Problem: Compiler warning for unused variable. Not freeing unused string. |
| Solution: Remove the variable. Clear the options. |
| Files: src/option.c |
| |
| |
| *** ../vim-7.3.928/src/option.c 2013-05-06 03:52:44.000000000 +0200 |
| --- src/option.c 2013-05-06 06:42:03.000000000 +0200 |
| *************** |
| *** 9705,9713 **** |
| { |
| struct vimoption *p; |
| int opt_idx; |
| ! |
| ! buf_T *buf = (buf_T *) from; |
| ! win_T *win = (win_T *) from; |
| |
| opt_idx = findoption(name); |
| p = &(options[opt_idx]); |
| --- 9705,9711 ---- |
| { |
| struct vimoption *p; |
| int opt_idx; |
| ! buf_T *buf = (buf_T *)from; |
| |
| opt_idx = findoption(name); |
| p = &(options[opt_idx]); |
| *************** |
| *** 9716,9775 **** |
| { |
| |
| case PV_EP: |
| ! *buf->b_p_ep = NUL; |
| break; |
| case PV_KP: |
| ! *buf->b_p_kp = NUL; |
| break; |
| case PV_PATH: |
| ! *buf->b_p_path = NUL; |
| break; |
| case PV_AR: |
| buf->b_p_ar = -1; |
| break; |
| case PV_TAGS: |
| ! *buf->b_p_tags = NUL; |
| break; |
| |
| case PV_DEF: |
| ! *buf->b_p_def = NUL; |
| break; |
| case PV_INC: |
| ! *buf->b_p_inc = NUL; |
| break; |
| |
| |
| case PV_DICT: |
| ! *buf->b_p_dict = NUL; |
| break; |
| case PV_TSR: |
| ! *buf->b_p_tsr = NUL; |
| break; |
| |
| |
| case PV_EFM: |
| ! *buf->b_p_efm = NUL; |
| break; |
| case PV_GP: |
| ! *buf->b_p_gp = NUL; |
| break; |
| case PV_MP: |
| ! *buf->b_p_mp = NUL; |
| break; |
| |
| |
| case PV_BEXPR: |
| ! *buf->b_p_bexpr = NUL; |
| break; |
| |
| |
| case PV_CM: |
| ! *buf->b_p_cm = NUL; |
| break; |
| |
| |
| case PV_STL: |
| ! *win->w_p_stl = NUL; |
| break; |
| |
| } |
| --- 9714,9773 ---- |
| { |
| |
| case PV_EP: |
| ! clear_string_option(&buf->b_p_ep); |
| break; |
| case PV_KP: |
| ! clear_string_option(&buf->b_p_kp); |
| break; |
| case PV_PATH: |
| ! clear_string_option(&buf->b_p_path); |
| break; |
| case PV_AR: |
| buf->b_p_ar = -1; |
| break; |
| case PV_TAGS: |
| ! clear_string_option(&buf->b_p_tags); |
| break; |
| |
| case PV_DEF: |
| ! clear_string_option(&buf->b_p_def); |
| break; |
| case PV_INC: |
| ! clear_string_option(&buf->b_p_inc); |
| break; |
| |
| |
| case PV_DICT: |
| ! clear_string_option(&buf->b_p_dict); |
| break; |
| case PV_TSR: |
| ! clear_string_option(&buf->b_p_tsr); |
| break; |
| |
| |
| case PV_EFM: |
| ! clear_string_option(&buf->b_p_efm); |
| break; |
| case PV_GP: |
| ! clear_string_option(&buf->b_p_gp); |
| break; |
| case PV_MP: |
| ! clear_string_option(&buf->b_p_mp); |
| break; |
| |
| |
| case PV_BEXPR: |
| ! clear_string_option(&buf->b_p_bexpr); |
| break; |
| |
| |
| case PV_CM: |
| ! clear_string_option(&buf->b_p_cm); |
| break; |
| |
| |
| case PV_STL: |
| ! clear_string_option(&((win_T *)from)->w_p_stl); |
| break; |
| |
| } |
| *** ../vim-7.3.928/src/version.c 2013-05-06 06:26:10.000000000 +0200 |
| --- src/version.c 2013-05-06 06:35:06.000000000 +0200 |
| *************** |
| *** 730,731 **** |
| --- 730,733 ---- |
| { |
| + |
| + 929, |
| |
| |
| -- |
| Microsoft: "Windows NT 4.0 now has the same user-interface as Windows 95" |
| Windows 95: "Press CTRL-ALT-DEL to reboot" |
| Windows NT 4.0: "Press CTRL-ALT-DEL to login" |
| |
| |
| |
| \\\ an exciting new programming language -- http: |
| \\\ help me help AIDS victims -- http: |