mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 05:28:49 +00:00
fix incorrect pointer to int comparison
This came to my attention while testing the PR that switches us to the C++11 standard and one of the compilers reported this error.
This commit is contained in:
parent
1054a2fd36
commit
b16511344e
1 changed files with 1 additions and 1 deletions
|
@ -492,7 +492,7 @@ void parse_util_get_parameter_info(const wcstring &cmd, const size_t pos, wchar_
|
|||
bool finished = cmdlen != 0;
|
||||
if (finished) {
|
||||
finished = (quote == NULL);
|
||||
if (finished && wcschr(L" \t\n\r", cmd_tmp[cmdlen - 1]) != NULL) {
|
||||
if (finished && wcschr(L" \t\n\r", cmd_tmp[cmdlen - 1])) {
|
||||
finished = cmdlen > 1 && cmd_tmp[cmdlen - 2] == L'\\';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue