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 001eb19758206bd3c9edeab2ed0ff6a27806f104..1f733a092d87f49f3f2d7fb483d3d9ed85e3acdc 100644 (file)
--- a/group.c
+++ b/group.c
@@ -1,6 +1,4 @@
 /* -*-c-*-
- *
- * $Id$
  *
  * Abstract group inteface
  *
@@ -227,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;