diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/inputdialog.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/inputdialog.c b/src/inputdialog.c index d17b852..340e488 100644 --- a/src/inputdialog.c +++ b/src/inputdialog.c | |||
| @@ -180,12 +180,13 @@ gchar *input_dialog_set_new_password(guint max_attempts) | |||
| 180 | _("Input password"), | 180 | _("Input password"), |
| 181 | _("Confirm new password"), | 181 | _("Confirm new password"), |
| 182 | NULL); | 182 | NULL); |
| 183 | if (strcmp(pass1, pass2) == 0) { | 183 | |
| 184 | /* TODO: clear before free? */ | 184 | if (pass1 != NULL && pass2 != NULL && strcmp(pass1, pass2) == 0) { |
| 185 | /* TODO: clear before free? */ | ||
| 185 | g_free(pass2); | 186 | g_free(pass2); |
| 186 | break; | 187 | break; |
| 187 | } | 188 | } |
| 188 | /* TODO: clear before free? */ | 189 | /* TODO: clear before free? */ |
| 189 | g_free(pass2); | 190 | g_free(pass2); |
| 190 | g_free(pass1); | 191 | g_free(pass1); |
| 191 | pass1 = NULL; | 192 | pass1 = NULL; |
