Skip to content

Commit ca0f747

Browse files
author
ripley
committed
add comment
git-svn-id: https://svn.r-project.org/R/trunk@87838 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 42ad3d5 commit ca0f747

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/apply.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ attribute_hidden SEXP do_vapply(SEXP call, SEXP op, SEXP args, SEXP rho)
111111
if (!isVector(value)) error(_("'FUN.VALUE' must be a vector"));
112112
useNames = asLogical(PROTECT(eval(CADDDR(args), rho)));
113113
UNPROTECT(1);
114+
// FIXME: does not protect against length > 1
114115
if (useNames == NA_LOGICAL) error(_("invalid '%s' value"), "USE.NAMES");
115116

116117
n = xlength(XX);

0 commit comments

Comments
 (0)