aboutsummaryrefslogtreecommitdiff
path: root/wmenu.c
diff options
context:
space:
mode:
Diffstat (limited to 'wmenu.c')
-rw-r--r--wmenu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/wmenu.c b/wmenu.c
index e7d37d9..0a3d0b0 100644
--- a/wmenu.c
+++ b/wmenu.c
@@ -19,7 +19,9 @@ static void read_items(struct menu *menu) {
int main(int argc, char *argv[]) {
struct menu *menu = menu_create();
menu_getopts(menu, argc, argv);
- read_items(menu);
+ if (!menu->passwd) {
+ read_items(menu);
+ }
int status = menu_run(menu);
menu_destroy(menu);
return status;