The declaration of char *cp should be left at the top of the function.
Setting the value can be where you put it.

Christ van Willegen

Op do 7 feb. 2019 22:30 schreef Friedrich2 <[email protected]:

> Found with cppcheck 1.86. Please c. f. the commit descriptions.
> ------------------------------
> You can view, comment on, or merge this pull request online at:
>
>   https://github.com/vim/vim/pull/3913
> Commit Summary
>
>    - Avoided NULL pointer arithmetic
>    - VIsual_active is defined to be TRUE in l. 4732.
>
> File Changes
>
>    - *M* src/dosinst.c <https://github.com/vim/vim/pull/3913/files#diff-0>
>    (8)
>    - *M* src/search.c <https://github.com/vim/vim/pull/3913/files#diff-1>
>    (18)
>
> Patch Links:
>
>    - https://github.com/vim/vim/pull/3913.patch
>    - https://github.com/vim/vim/pull/3913.diff
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/vim/vim/pull/3913>
>
> --
> --
> You received this message from the "vim_dev" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups
> "vim_dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui