patch 8.1.1260: comparing with pointer instead of value
Problem: Comparing with pointer instead of value.
Solution: Add a "*". (Ken Takata, closes #4336)
diff --git a/src/usercmd.c b/src/usercmd.c
index ca01a3c..45d7ea0 100644
--- a/src/usercmd.c
+++ b/src/usercmd.c
@@ -824,10 +824,10 @@
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
{