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 88df993 commit 8f4b962
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 @@ -1530,7 +1530,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, stat) == TCL_ERROR) {
if (statArray && zootcl_stat_to_array (interp, statArray, stat) == TCL_ERROR) {
ckfree (stat);
return TCL_ERROR;
}
Expand Down

0 comments on commit 8f4b962

Please sign in to comment.