Skip to content

Commit e4f5f3a

Browse files
committed
patch 8.1.1260: comparing with pointer instead of value
Problem: Comparing with pointer instead of value. Solution: Add a "*". (Ken Takata, closes #4336)
1 parent e5c8328 commit e4f5f3a

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/usercmd.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -824,10 +824,10 @@ uc_scan_attr(
824824
emsg(_("E179: argument required for -addr"));
825825
return FAIL;
826826
}
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)
828828
return FAIL;
829-
if (addr_type_arg != ADDR_LINES)
830-
*argt |= (ZEROR) ;
829+
if (*addr_type_arg != ADDR_LINES)
830+
*argt |= ZEROR;
831831
}
832832
else
833833
{

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,8 @@ static char *(features[]) =
767767

768768
static int included_patches[] =
769769
{ /* Add new patch number below this line */
770+
/**/
771+
1260,
770772
/**/
771773
1259,
772774
/**/

0 commit comments

Comments
 (0)