Commit Diff


commit - 044328a9d61f0290c4bc4b7e25e9b2fdf4e96d86
commit + 3dac010d3e678174cdff382641a67e8c1a99910b
blob - 6a2a1cc7657f0df7d6f4a844c3f2057bd655f3c4
blob + a7752b19fdd25c115a8c881e05abe65bbbcdbb22
--- xitems.c
+++ xitems.c
@@ -208,7 +208,8 @@ main(int argc, char *argv[])
 				redraw(first, height, width, font);
 				break;
 			case XK_Return:
-				puts(selected->s);
+				if (selected)
+					puts(selected->s);
 				exit(0);
 				/* NOTREACHED */
 			}