Mercurial > vim
comparison src/usercmd.c @ 16513:81a9d0fad357 v8.1.1260
patch 8.1.1260: comparing with pointer instead of value
commit https://github.com/vim/vim/commit/e4f5f3aa3d597ec9188e01b004013a02bceb4026
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat May 4 14:05:08 2019 +0200
patch 8.1.1260: comparing with pointer instead of value
Problem: Comparing with pointer instead of value.
Solution: Add a "*". (Ken Takata, closes https://github.com/vim/vim/issues/4336)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 04 May 2019 14:15:06 +0200 |
parents | 4182f74e2965 |
children | ef00b6bc186b |
comparison
equal
deleted
inserted
replaced
16512:7e5f5a844629 | 16513:81a9d0fad357 |
---|---|
822 if (val == NULL) | 822 if (val == NULL) |
823 { | 823 { |
824 emsg(_("E179: argument required for -addr")); | 824 emsg(_("E179: argument required for -addr")); |
825 return FAIL; | 825 return FAIL; |
826 } | 826 } |
827 if (parse_addr_type_arg(val, (int)vallen, addr_type_arg) == FAIL) | 827 if (parse_addr_type_arg(val, (int)vallen, addr_type_arg) == FAIL) |
828 return FAIL; | 828 return FAIL; |
829 if (addr_type_arg != ADDR_LINES) | 829 if (*addr_type_arg != ADDR_LINES) |
830 *argt |= (ZEROR) ; | 830 *argt |= ZEROR; |
831 } | 831 } |
832 else | 832 else |
833 { | 833 { |
834 char_u ch = attr[len]; | 834 char_u ch = attr[len]; |
835 attr[len] = '\0'; | 835 attr[len] = '\0'; |