Browse Source

Fix conditional definition of USERDICT_OPT.

Make sure USERDICT_OPT is always defined, even as an empty
string (if the only estimator backend available is pwquality).
master
Damien Goutte-Gattat 3 years ago
parent
commit
b3c7660228
  1. 4
      src/scorepw.c

4
src/scorepw.c

@ -36,13 +36,15 @@
#define FLAGS_MULTI_BACKEND 0x02
#define FLAGS_NO_INTERNAL_DICT 0x04
#if NUM_BACKENDS > 1 || defined(HAVE_PWQUALITY)
#if NUM_BACKENDS > 1 || !defined(HAVE_PWQUALITY)
#define HAVE_USERDICT 1
#ifdef HAVE_INTERNAL_DICT
#define USERDICT_OPT "d:D"
#else
#define USERDICT_OPT "d:"
#endif
#else
#define USERDICT_OPT
#endif

Loading…
Cancel
Save