diff options
-rw-r--r-- | Modules/rotormodule.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Modules/rotormodule.c b/Modules/rotormodule.c index d0da590..1985e4c 100644 --- a/Modules/rotormodule.c +++ b/Modules/rotormodule.c @@ -767,14 +767,12 @@ rotorobj_setkey(self, args) Rotorobj *self; PyObject * args; { - char *string = NULL; + char *key; - if (!PyArg_ParseTuple(args, "|s", &string)) + if (!PyArg_ParseTuple(args, "s", &key)) return NULL; - if (string) - set_key(self, string); - + set_key(self, key); Py_INCREF(Py_None); return Py_None; } |