Subject: Fix for segmentation fault in the Python extension
Author: Peter Palfrader <weasel@debian.org>
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=596281
--- a/python/_cracklibmodule.c
+++ b/python/_cracklibmodule.c
@@ -64,7 +64,8 @@
 static PyObject *
 _cracklib_FascistCheck(PyObject *self, PyObject *args, PyObject *kwargs)
 {
-    char *candidate, *dict, *defaultdict;
+    char *candidate, *dict;
+    char *defaultdict = NULL;
     const char *result;
     struct stat st;
     char *keywords[] = {"pw", "dictpath", NULL};
--- a/python/Makefile.am
+++ b/python/Makefile.am
@@ -1,7 +1,7 @@
 if BUILD_PYTHON
 python_PYTHON = cracklib.py
 pyexec_LTLIBRARIES = _cracklibmodule.la
-AM_CFLAGS = -I$(top_srcdir)/lib
+AM_CFLAGS = -I$(top_srcdir)/lib -Wall
 _cracklibmodule_la_LDFLAGS = -module -avoid-version $(top_builddir)/lib/libcrack.la
 DEFS += '-DDEFAULT_CRACKLIB_DICT="$(DEFAULT_CRACKLIB_DICT)"'
 DEFS += '-DPYTHON_H="python@PYTHON_VERSION@/Python.h"'
