summaryrefslogtreecommitdiff
path: root/src/dlg-ask-password.c
diff options
context:
space:
mode:
authorScott Balneaves <[email protected]>2012-11-22 21:30:10 -0600
committerScott Balneaves <[email protected]>2012-11-22 21:30:10 -0600
commit6cab8b63ebbf27525b53cf75ff18d5811fa2d39a (patch)
treede0b4c14457c00003ca8c09a3dc781b423524c34 /src/dlg-ask-password.c
parentcee6f9ff77c3c54f5524a7e725183e93e32a8ada (diff)
downloadengrampa-6cab8b63ebbf27525b53cf75ff18d5811fa2d39a.tar.bz2
engrampa-6cab8b63ebbf27525b53cf75ff18d5811fa2d39a.tar.xz
Fix deprecations and warnings
Diffstat (limited to 'src/dlg-ask-password.c')
-rw-r--r--src/dlg-ask-password.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dlg-ask-password.c b/src/dlg-ask-password.c
index 6010bad..c655ba1 100644
--- a/src/dlg-ask-password.c
+++ b/src/dlg-ask-password.c
@@ -94,7 +94,7 @@ dlg_ask_password__common (FrWindow *window,
DialogData *data;
GtkWidget *label;
char *text;
- char *name;
+ char *name = NULL;
data = g_new0 (DialogData, 1);
@@ -120,6 +120,7 @@ dlg_ask_password__common (FrWindow *window,
name = g_uri_display_basename (fr_window_get_archive_uri (window));
else if (data->pwd_type == FR_PASSWORD_TYPE_PASTE_FROM)
name = g_uri_display_basename (fr_window_get_paste_archive_uri (window));
+ g_assert (name != NULL);
text = g_strdup_printf (_("Enter the password for the archive '%s'."), name);
gtk_label_set_label (GTK_LABEL (label), text);
g_free (text);