Skip to content

Commit

Permalink
Fix argument error in cursor set_query method.
Browse files Browse the repository at this point in the history
BUGZID:
  • Loading branch information
lehenbauer committed Feb 22, 2014
1 parent 0fca829 commit fcaa34b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generic/cursor.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ mongotcl_cursorObjectObjCmd(ClientData cData, Tcl_Interp *interp, int objc, Tcl_
return TCL_ERROR;
}

if (mongotcl_cmdNameObjToBson (interp, objv[3], &bson) == TCL_ERROR) {
if (mongotcl_cmdNameObjToBson (interp, objv[2], &bson) == TCL_ERROR) {
return TCL_ERROR;
}

Expand Down

0 comments on commit fcaa34b

Please sign in to comment.