diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-05-04 14:05:08 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-05-04 14:05:08 +0200 |
commit | e4f5f3aa3d597ec9188e01b004013a02bceb4026 (patch) | |
tree | 1712c0473d4fdf3947a533b2e1945684979141e8 /src/usercmd.c | |
parent | e5c83286bb9a72cc686f2826e605eddebe3c730c (diff) | |
download | vim-git-e4f5f3aa3d597ec9188e01b004013a02bceb4026.tar.gz |
patch 8.1.1260: comparing with pointer instead of valuev8.1.1260
Problem: Comparing with pointer instead of value.
Solution: Add a "*". (Ken Takata, closes #4336)
Diffstat (limited to 'src/usercmd.c')
-rw-r--r-- | src/usercmd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usercmd.c b/src/usercmd.c index ca01a3ca3..45d7ea052 100644 --- a/src/usercmd.c +++ b/src/usercmd.c @@ -824,10 +824,10 @@ invalid_count: emsg(_("E179: argument required for -addr")); return FAIL; } - if (parse_addr_type_arg(val, (int)vallen, addr_type_arg) == FAIL) + if (parse_addr_type_arg(val, (int)vallen, addr_type_arg) == FAIL) return FAIL; - if (addr_type_arg != ADDR_LINES) - *argt |= (ZEROR) ; + if (*addr_type_arg != ADDR_LINES) + *argt |= ZEROR; } else { |