tfix crash with ctrl-enter as input - dmenu - Dmenu fork with xft fonts.
 (HTM) git clone git://r-36.net/dmenu
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit aa69426670bf0ae480db127ff8d4fc62d6da2593
 (DIR) parent 4c50e43df46e486a0fac632d34eaed37359ceba7
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Thu, 24 Jul 2014 19:10:23 +0000
       
       fix crash with ctrl-enter as input
       
       reproduce: ./dmenu; send EOF; press ctrl+enter.
       
       Diffstat:
         dmenu.c                             |       3 ++-
       
       1 file changed, 2 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/dmenu.c b/dmenu.c
       t@@ -370,7 +370,8 @@ keypress(XKeyEvent *ev) {
                        puts((sel && !(ev->state & ShiftMask)) ? sel->text : text);
                        if(!(ev->state & ControlMask))
                                exit(EXIT_SUCCESS);
       -                sel->out = True;
       +                if(sel)
       +                        sel->out = True;
                        break;
                case XK_Right:
                        if(text[cursor] != '\0') {