Skip to content

Commit

Permalink
Fix compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
thommey committed Aug 8, 2024
1 parent 0509df5 commit 05b978b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/mod/python.mod/pycmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,13 +374,14 @@ static PyObject *python_call_tcl(PyObject *self, PyObject *args, PyObject *kwarg

static PyObject *py_dir(PyObject *self, PyObject *args) {
PyObject *py_list, *py_s;
int i, j;
size_t i;
int j;
const char *info[] = {"info commands", "info procs"}, *s, *value;
Tcl_Obj *tcl_list, **objv;
int objc;

py_list = PyList_New(0);
for (i = 0; i < (sizeof info / sizeof info[0]); i++) {
for (i = 0; i < sizeof info / sizeof info[0]; i++) {
s = info[i];
if (Tcl_VarEval(tclinterp, s, NULL, NULL) == TCL_ERROR)
putlog(LOG_MISC, "*", "python error: Tcl_VarEval(%s)", s);
Expand Down

0 comments on commit 05b978b

Please sign in to comment.