chiark / gitweb /
pwsafe: Report password mismatch as an error, not an exception.
[catacomb-python] / group.c
diff --git a/group.c b/group.c
index 544a8c724a79df991d1cf36cb57a0ef46f15f622..1f733a092d87f49f3f2d7fb483d3d9ed85e3acdc 100644 (file)
--- a/group.c
+++ b/group.c
@@ -225,7 +225,7 @@ static PyObject *namedgroups(const pentry *pp, int *ne)
     }
     c = PyInt_FromLong(i);
   found:
-    PyDict_SetItemString(d, (/*unconst*/ char *)pp[i].name, c);
+    PyDict_SetItemString(d, (/*unconst*/ char *)p, c);
     Py_DECREF(c);
   }
   *ne = i;