Mercurial > vim
comparison src/os_win32.c @ 20830:9064044fd4f6 v8.2.0967
patch 8.2.0967: unnecessary type casts for vim_strnsave()
Commit: https://github.com/vim/vim/commit/71ccd03ee8a43b20000214a9c99dcc90f039edca
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jun 12 22:59:11 2020 +0200
patch 8.2.0967: unnecessary type casts for vim_strnsave()
Problem: Unnecessary type casts for vim_strnsave().
Solution: Remove the type casts.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 12 Jun 2020 23:00:04 +0200 |
parents | 89b0f161e6a6 |
children | 88070e222e82 |
comparison
equal
deleted
inserted
replaced
20829:3d0d6410aecd | 20830:9064044fd4f6 |
---|---|
475 exe_name = FullName_save((char_u *)temp, FALSE); | 475 exe_name = FullName_save((char_u *)temp, FALSE); |
476 } | 476 } |
477 | 477 |
478 if (exe_path == NULL && exe_name != NULL) | 478 if (exe_path == NULL && exe_name != NULL) |
479 { | 479 { |
480 exe_path = vim_strnsave(exe_name, | 480 exe_path = vim_strnsave(exe_name, gettail_sep(exe_name) - exe_name); |
481 (int)(gettail_sep(exe_name) - exe_name)); | |
482 if (exe_path != NULL) | 481 if (exe_path != NULL) |
483 { | 482 { |
484 // Append our starting directory to $PATH, so that when doing | 483 // Append our starting directory to $PATH, so that when doing |
485 // "!xxd" it's found in our starting directory. Needed because | 484 // "!xxd" it's found in our starting directory. Needed because |
486 // SearchPath() also looks there. | 485 // SearchPath() also looks there. |