Skip to content

Commit

Permalink
Can't set statArray if -stat option not provided.
Browse files Browse the repository at this point in the history
  • Loading branch information
resuna committed Jul 9, 2019
1 parent 8ca418f commit 2a0d9a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generic/zookeepertcl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1526,7 +1526,7 @@ zootcl_get_subcommand(Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[], ZOOAP
Tcl_SetObjResult (interp, Tcl_NewBooleanObj (1));
}

if (zootcl_stat_to_array (interp, statArray, &zsc->stat) == TCL_ERROR) {
if (statArray && zootcl_stat_to_array (interp, statArray, &zsc->stat) == TCL_ERROR) {
ckfree (zsc);
return TCL_ERROR;
}
Expand Down

0 comments on commit 2a0d9a0

Please sign in to comment.