summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Mraz <tmraz@redhat.com>2014-08-06 15:16:05 +0200
committerTomas Mraz <tmraz@redhat.com>2014-08-06 15:16:05 +0200
commita95e7dc723b470583e62ad6b387e866a94040b1e (patch)
treefbfdcfe19af7d23f8202281a39b2e397f858c260
parent55f3808c7c2413a5fc8700902733153018673fbf (diff)
downloadlibpwquality-a95e7dc723b470583e62ad6b387e866a94040b1e.tar.gz
Backing out unnecessary change.
-rw-r--r--src/check.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/check.c b/src/check.c
index 7068958..8b59f2f 100644
--- a/src/check.c
+++ b/src/check.c
@@ -503,13 +503,6 @@ password_check(pwquality_settings_t *pwq,
char *oldmono = NULL, *newmono, *wrapped = NULL;
char *usermono = NULL;
- /* Sanitize the old and user values */
- if (old && *old = '\0')
- old = NULL;
-
- if (user && *user = '\0')
- user = NULL;
-
newmono = str_lower(x_strdup(new));
if (!newmono)
rv = PWQ_ERROR_MEM_ALLOC;