diff options
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/keybox.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/plugins/keybox.c b/apps/plugins/keybox.c index d926105962..f8da40f08e 100644 --- a/apps/plugins/keybox.c +++ b/apps/plugins/keybox.c | |||
@@ -172,6 +172,8 @@ static void delete_entry(int selected_item) | |||
172 | entry2->next = NULL; | 172 | entry2->next = NULL; |
173 | 173 | ||
174 | rb->gui_synclist_set_nb_items(&kb_list, --pw_list.num_entries); | 174 | rb->gui_synclist_set_nb_items(&kb_list, --pw_list.num_entries); |
175 | if(!pw_list.num_entries) | ||
176 | init_ll(); | ||
175 | data_changed = true; | 177 | data_changed = true; |
176 | } | 178 | } |
177 | 179 | ||
@@ -270,7 +272,7 @@ static void edit_pw(int selected_item) | |||
270 | 272 | ||
271 | static void context_menu(int selected_item) | 273 | static void context_menu(int selected_item) |
272 | { | 274 | { |
273 | int selection, result; | 275 | int selection = 0, result; |
274 | bool exit = false; | 276 | bool exit = false; |
275 | 277 | ||
276 | do { | 278 | do { |
@@ -612,7 +614,7 @@ static void reset(void) | |||
612 | 614 | ||
613 | static int main_menu(void) | 615 | static int main_menu(void) |
614 | { | 616 | { |
615 | int selection, result, ret; | 617 | int selection = 0, result, ret; |
616 | bool exit = false; | 618 | bool exit = false; |
617 | 619 | ||
618 | MENUITEM_STRINGLIST(menu, "Keybox", NULL, | 620 | MENUITEM_STRINGLIST(menu, "Keybox", NULL, |