| To: vim_dev@googlegroups.com |
| Subject: Patch 7.4.581 |
| 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.4.581 |
| Problem: Compiler warnings for unitinialized variables. (John Little) |
| Solution: Initialize the variables. |
| Files: src/ops.c |
| |
| |
| |
| |
| |
| *** 5663,5670 **** |
| int set_prev = FALSE; |
| char_u *str; |
| char_u **array = NULL; |
| ! int new_type; |
| ! colnr_T new_width; |
| |
| /* We only get here (hopefully) if line[0] == '"' */ |
| str = virp->vir_line + 1; |
| --- 5663,5670 ---- |
| int set_prev = FALSE; |
| char_u *str; |
| char_u **array = NULL; |
| ! int new_type = MCHAR; /* init to shut up compiler */ |
| ! colnr_T new_width = 0; /* init to shut up compiler */ |
| |
| /* We only get here (hopefully) if line[0] == '"' */ |
| str = virp->vir_line + 1; |
| |
| *** 5747,5752 **** |
| --- 5747,5753 ---- |
| do_it = FALSE; |
| } |
| } |
| + |
| if (do_it) |
| { |
| /* free y_array[] */ |
| |
| |
| |
| *** 743,744 **** |
| --- 743,746 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 581, |
| /**/ |
| |
| -- |
| From "know your smileys": |
| :-D Big smile |
| |
| /// Bram Moolenaar -- Bram@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 /// |